Ejemplo n.º 1
0
    // 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();
    }
Ejemplo n.º 2
0
 void Awake()
 {
     highscoreDisplay = GetComponent <HighscoreDisplay> ();
     instance         = this;
 }
Ejemplo n.º 3
0
 public static void gameOver()
 {
     HighscoreDisplay.setNewHighscore(score);
     handler.Invoke("loadMainMenu", 5);
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     instance = this;
 }