예제 #1
0
    private void OnGameOver(object sender, System.EventArgs e)
    {
        scoreText.text = Level.GetInstance().GetPipesPassed().ToString();

        if (Level.GetInstance().GetPipesPassed() >= ScoreHandler.GetHighScore())
        {
            highScoreText.text = "New High Score!";
        }
        else
        {
            highScoreText.text = "High Score: " + ScoreHandler.GetHighScore();
        }

        Show();
    }
예제 #2
0
 private void Start()
 {
     highScore.text = "High Score: " + ScoreHandler.GetHighScore().ToString();
 }