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