private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     instance         = this;
     highscoreDisplay = GetComponent <DisplayHighscore>();
 }
Beispiel #2
0
 void Awake()
 {
     instance          = this;
     highscoresDisplay = GetComponent <DisplayHighscore>();
 }