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); }
public void OnRestartPressed() { if (Hide()) { AdManager.ShowInterstitial(); Balls.Restart(); } }
public void RestartPressed() { if (Hide()) { UIManager.Gameplay.Show(); AdManager.ShowInterstitial(); Balls.Restart(); } }