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(); }
private void Start() { highScore.text = "High Score: " + ScoreHandler.GetHighScore().ToString(); }