Пример #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);
    }
Пример #2
0
 private void HandleStageStartedEvent(StageStartedEvent startedEv)
 {
     root.SetActive(true);
 }
Пример #3
0
    private void HandleStageStartedEvent(StageStartedEvent startedEvent)
    {
        waves = waveData.GetWavesForDay(Progress.Day);

        StartCoroutine(SpawnNextWave());
    }