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