Exemple #1
0
    public void OnClickKeepPlay()
    {
        if (!bCheckTime)
        {
            return;
        }

        bCheckTime = false;
        StopCoroutine(CheckTimer());

        UnityAdsController.ShowAd(Define.continueId, CallbackSuccess, OnClickClose, OnClickClose);
    }
Exemple #2
0
 public void OnClickFreeVideo()
 {
     if (UnityAdsController.IsReady(Define.freeCoinId))
     {
         UnityAdsController.ShowAd(Define.freeCoinId, CallbackSuccess, CallbackSkip, CallbackSkip);
     }
     else
     {
         BasicPopup popup = PopupSystem.GetPopup <BasicPopup>(Define.PopupType.Basic);
         popup.SetData(DataManager.GetText(TextTable.errorVideKey));
         PopupSystem.OpenPopup(Define.PopupType.Basic);
     }
 }
Exemple #3
0
    public void ReStartGame()
    {
        __respawn_count += 1;
        if (__respawn_count >= __max_respawn_count)
        {
            adsController.ShowAd();
            Reset();
            SceneManager.LoadScene("HomeScene");
            return;
        }

        PlayerPrefs.SetInt(__player_prefs_key, __respawn_count);
        SceneManager.LoadScene("GameScene");
    }