// Start is called before the first frame update void Awake() { highscoreText = transform.Find("Highscore").GetComponent <Text>(); int highscoreInt = HighscoreDisplay.getHighscore(); highscoreText.text = "HIGHSCORE: " + HighscoreDisplay.getHighscore(); }
void Awake() { highscoreDisplay = GetComponent <HighscoreDisplay> (); instance = this; }
public static void gameOver() { HighscoreDisplay.setNewHighscore(score); handler.Invoke("loadMainMenu", 5); }
private void Awake() { instance = this; }