예제 #1
0
    public void EndGame(bool win)
    {
        bool newHighScore = PlayerPrefsUtils.AddHighScore(score);

        if (win)
        {
        }
        else
        {
            gameOverPanel.SetActive(true);
            gameOverScoreText.text     = score.ToString();
            gameOverHighScoreText.text = newHighScore ? "New high score!" : "High: " + PlayerPrefs.GetInt(Globals.PP_HIGH_SCORES [0]).ToString();
        }
    }