SDK Tappx Unity GDPR
Ejemplo de Rewarded video en Unity
A continuación puedes ver un pequeño ejemplo de ejecución de un anuncio de video rewarded.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class start : MonoBehaviour {
// Start is called before the first frame update
void Start() {
TappxManagerUnity.instance.loadRewarded();
}
void RewardedLoaded(){
}
// Update is called once per frame
void Update() {
if(SomeEventTrue){
if(TappxManagerUnity.instance.isRewardedReady()){
TappxManagerUnity.instance.rewardedShow();
}
}
}
}
Tappx © 2024