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(); }
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); }