Esempio n. 1
0
    private void HandleStageStartedEvent(StageStartedEvent stageEv)
    {
        int level = Progress.HouseLevel;

        for (int i = 0; i < levelColliders.Length; i++)
        {
            levelColliders[i].enabled = (i == level);
        }

        SetMaxHealth(levelHealths[level]);
        ResetHealth();
        regen = levelRegens[level];

        GetComponentInChildren <Animator>().SetInteger("Level", Progress.HouseLevel);

        StageGUI.Instance.CreateHealthBar(this);
    }
Esempio n. 2
0
 private void HandleStageStartedEvent(StageStartedEvent startedEv)
 {
     root.SetActive(true);
 }
    private void HandleStageStartedEvent(StageStartedEvent startedEvent)
    {
        waves = waveData.GetWavesForDay(Progress.Day);

        StartCoroutine(SpawnNextWave());
    }