예제 #1
0
 public override bool Show(float delay = 0f)
 {
     if (base.Show(delay))
     {
         if (Balls.EndlessMode)
         {
             UIManager.ShowMessage("Endless mode");
         }
         else
         {
             UIManager.ShowMessage("Adventure mode");
         }
         GameManager.main.Gameplay.SetActive(true);
         if (Balls.Restart())
         {
             UIManager.Info.Show();
             Balls.Score = 0;
             currScore   = 0;
         }
         else
         {
             currScore = Balls.Score;
         }
         AddScoreText.text  = "";
         ScoreText.text     = string.Format("{0}", currScore);
         BestScoreText.text = string.Format("{0}", GameData.OverallBest);
         return(true);
     }
     return(false);
 }
예제 #2
0
 public void OnRestartPressed()
 {
     if (Hide())
     {
         AdManager.ShowInterstitial();
         Balls.Restart();
     }
 }
예제 #3
0
 public void RestartPressed()
 {
     if (Hide())
     {
         UIManager.Gameplay.Show();
         AdManager.ShowInterstitial();
         Balls.Restart();
     }
 }