Exemple #1
0
 private void Awake()
 {
     if (gameController == null)
     {
         gameController = FindObjectOfType <GameController>();
     }
     menuStartListener = gameController;
 }
Exemple #2
0
 private void Awake()
 {
     restartListener = FindObjectOfType <GameController>();
     print("pausing 1   " + Time.timeScale);
     Time.timeScale = 0.0f;
 }
Exemple #3
0
 private void Awake()
 {
     restartListener        = FindObjectOfType <GameController>();
     candyDisplay           = FindObjectOfType <ScoreManager>().Score;
     finishedScoreText.text = candyDisplay + " kids";
 }