예제 #1
0
 public void RestartPressed()
 {
     if (Hide())
     {
         UIManager.Gameplay.Show();
         AdManager.ShowInterstitial();
         Balls.Restart();
     }
 }
예제 #2
0
        public void OnSpinPressed()
        {
            if (!Wheel.Spining)
            {
#if !UNITY_EDITOR
                AdManager.ShowRewarded();
#else
                Spin();
#endif
            }
        }
예제 #3
0
 public override bool Show(float delay = 0f)
 {
     UIManager.ClearMessage();
     if (base.Show(delay))
     {
         AdManager.RequestRewardedAd();
         Title.gameObject.SetActive(true);
         Title.Show(ShowDuration);
         return(true);
     }
     return(false);
 }
예제 #4
0
 private bool loadPuzzle(Level levelProfile)
 {
     Active = true;
     init();
     StopAllCoroutines();
     if (WasGameOver)
     {
         AdManager.ShowInterstitial();
         WasGameOver = false;
     }
     StartCoroutine(ResetBallsRoutine(levelProfile));
     UIManager.Gameplay.ResetScore();
     return(true);
 }