public void UpdateText() { scoreText.text = $"{GameManager.Instance.PlayerTotalScore}"; if (GameManager.Instance.PlayerTotalScore > PlayerPrefsUtil.GetHighScore()) { PlayerPrefsUtil.SetHighScore(GameManager.Instance.PlayerTotalScore); highScoreText.text = $"{GameManager.Instance.PlayerTotalScore}"; } }
public void InitGame() { highScoreText.text = $"{PlayerPrefsUtil.GetHighScore()}"; homePanel.Open(); inGamePanel.Close(); levelClearPanel.Close(); pausePanel.Close(); gameOverPanel.Close(); }