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