public void SpawnNextWave()
    {
        if (CurrentWave < enemyWaves.Count)
        {
            enemyWaves[CurrentWave].SpawnEnemies();
        }

        //TODO you code goes here

        E_WaveSpawned?.Invoke(CurrentWave + 1);
    }
Esempio n. 2
0
    public void SpawnNextWave()
    {
        if (CurrentWave < _EnemyWaves.Count)
        {
            Pattern pattern = _EnemyWaves[CurrentWave].pattern;
            if (pattern != Pattern.Custom)
            {
                SpawnRegularPattern(_EnemyWaves[CurrentWave], pattern);
            }
            else
            {
                SpawnCustomPattern(_EnemyWaves[CurrentWave]);
            }

            CurrentWave++;
            E_WaveSpawned?.Invoke(CurrentWave);
        }
    }
Esempio n. 3
0
 public void SpawnNextWave()
 {
     E_WaveSpawned?.Invoke(CurrentWave);
 }