void Awake() { if (instance != null) { Destroy(instance); } instance = this; this.canClick = false; }
void Start() { if (GameMaster.bossCount >= 4 && GameMaster.bossCount < 6) //If the first four bosses have been killed, open the lobby's gate. { gateClosed.SetActive(false); gateOpen.SetActive(true); } playerScript = GameObject.Find("Player").GetComponent <PlayerController>(); nextLevelScript = GameObject.FindWithTag("Exit").GetComponent <NextLevelManager>(); twiVal = GameObject.Find("mournerCircleExitTwiVal").GetComponent <Transform>(); shrWoods = GameObject.Find("mournerCircleExitShrWoods").GetComponent <Transform>(); nmPass = GameObject.Find("mournerCircleExitnmPass").GetComponent <Transform>(); }