Пример #1
0
 private void UpdateGUI()
 {
     GUI.score.text     = GameParams.GetScore().ToString();
     GUI.lastScore.text = GameParams.GetLastScore().ToString();
     GUI.topScore.text  = GameParams.GetTopScore().ToString();
     GUI.coins.text     = GameParams.GetCoins().ToString();
 }
Пример #2
0
 public void ReturnMenu()
 {
     fading.GetComponent <Animation>().Play("Fading");
     if (GameParams.GetTopScore() <= GameParams.GetLastScore())
     {
         GameParams.SetTopScore(GameParams.GetLastScore());
     }
     audioManager.PlayClick();
     Data.gameStart = 1;
     GetComponent <ConfigManager>().Save();
     SceneManager.LoadScene(0);
 }