public void SpawnNextWave() { if (CurrentWave < enemyWaves.Count) { enemyWaves[CurrentWave].SpawnEnemies(); } //TODO you code goes here E_WaveSpawned?.Invoke(CurrentWave + 1); }
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); } }
public void SpawnNextWave() { E_WaveSpawned?.Invoke(CurrentWave); }