Exemple #1
0
    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());
    }
Exemple #2
0
 private void Start()
 {
     anim = GetComponent <DoorAnim>();
     anim.SetDoorState(isOpen);
 }