// Use this for initialization
 void Start()
 {
     GameOver.SetActive(false);
     player      = GameObject.FindGameObjectWithTag("Player");
     pause       = true;
     pauseScript = FindObjectOfType <PauseEndless>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     game = FindObjectOfType <GameController>();
     if (game == null)
     {
         Debug.Log("can't find game controller");
     }
     pauseScript = FindObjectOfType <PauseEndless>();
 }