private void Start() { instance = this; DeathHUD.SetActive(false); WinHUD.SetActive(false); TimerHUD.SetActive(false); bossPrefab.SetActive(false); Wave = 1; Dead = false; //spawnPoints = new List<Transform>(4); Wonder = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterAnim>(); Door = GameObject.FindGameObjectWithTag("Door").GetComponent <DoorAnim>(); state = BattleState.START; StartCoroutine(SetupGame()); }
private void Start() { anim = GetComponent <DoorAnim>(); anim.SetDoorState(isOpen); }