public TapsellRewardedAd(string zoneId) : base(zoneId)
                {
                    if (_isGlobalHandlerSet)
                    {
                        Tapsell.SetRewardListener(OnEarnedRewardGlobal);
                        _isGlobalHandlerSet = true;
                    }

                    OnEarnedRewardGlobal += OnEarnedRewardHandler;
                }
Пример #2
0
 void start()
 {
     Tapsell.SetRewardListener(
         (TapsellAdFinishedResult result) => {
         Debug.Log(
             "adId:" + result.adId + ", " +
             "zoneId:" + result.zoneId + ", " +
             "completed:" + result.completed + ", " +
             "rewarded:" + result.rewarded);
     }
         );
 }
Пример #3
0
    void Start()
    {
        Tapsell.SetRewardListener((TapsellAdFinishedResult result) =>
        {
            if (result.completed && result.rewarded)
            {
                AchiveThat(coin);
            }
        }
                                  );

        RequestAd();
    }
Пример #4
0
    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();
    }