public TapsellRewardedAd(string zoneId) : base(zoneId) { if (_isGlobalHandlerSet) { Tapsell.SetRewardListener(OnEarnedRewardGlobal); _isGlobalHandlerSet = true; } OnEarnedRewardGlobal += OnEarnedRewardHandler; }
void start() { Tapsell.SetRewardListener( (TapsellAdFinishedResult result) => { Debug.Log( "adId:" + result.adId + ", " + "zoneId:" + result.zoneId + ", " + "completed:" + result.completed + ", " + "rewarded:" + result.rewarded); } ); }
void Start() { Tapsell.SetRewardListener((TapsellAdFinishedResult result) => { if (result.completed && result.rewarded) { AchiveThat(coin); } } ); RequestAd(); }
void Start() { State = Status.Nothing; Tapsell.Initialize(tapsellKey); Tapsell.SetDebugMode(debugMode); Tapsell.SetRewardListener((TapsellAdFinishedResult result) => { if (result.completed && result.rewarded) { State = Status.Shown; SurvivePanel.GetComponent <SurviveScript>().Resume(); } } ); RequestAd(); }