Exemple #1
0
 public void TouchRestart()
 {
     Debug.Log("TouchRestartTouchRestart");
     SceneManager.LoadScene("Level" + GameLevelManager.Ins.level);
     popupActionType = Config.POPUP_ACTION.RESTART;
     HidePopup();
 }
Exemple #2
0
 public void TouchSkipLevel()
 {
     Debug.Log("TouchSkipLevelTouchSkipLevel");
     if (AdmobManager.instance.isRewardAds_Avaiable())
     {
         lockPopup.gameObject.SetActive(true);
         AdmobManager.instance.ShowRewardAd_CallBack((AdmobManager.ADS_CALLBACK_STATE state) =>
         {
             if (state == AdmobManager.ADS_CALLBACK_STATE.SUCCESS)
             {
                 lockPopup.gameObject.SetActive(false);
                 popupActionType = Config.POPUP_ACTION.SKIPLEVEL;
                 HidePopup();
             }
             else
             {
                 lockPopup.gameObject.SetActive(false);
             }
         });
     }
     else
     {
         NotificationPopup.instance.AddNotification("No Video Available!");
     }
 }
Exemple #3
0
 public void TouchContinue()
 {
     popupActionType = Config.POPUP_ACTION.CONTINUE;
     HidePopup();
 }