public void OnClickKeepPlay() { if (!bCheckTime) { return; } bCheckTime = false; StopCoroutine(CheckTimer()); UnityAdsController.ShowAd(Define.continueId, CallbackSuccess, OnClickClose, OnClickClose); }
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); } }
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"); }