Beispiel #1
0
    void UpdateInMainWave()
    {
        timeSinceLastWaveCheck += Time.deltaTime;
        if (timeSinceLastWaveCheck > 1.0f)
        {
            if (!enemyFactory.EnemiesStillAlive())
            {
                TransitionToState(DirectorState.LoadingBossWave);
            }

            timeSinceLastWaveCheck = 0.0f;
        }
    }