void Start() {
     instance = this;
     scoreMessage = GetComponent<Text>();
 }
Exemple #2
0
 private void Awake()
 {
     GlobalEvents.OnAddGameScore += UpdateGameScore;
     gameScoreUI = FindObjectOfType <GameScoreUI>();
     ResetGameScore();
 }