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