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
파일: AD.cs 프로젝트: Next-Studios/Halley
    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();
    }