private IEnumerator StartNewWave() { yield return(new WaitForSeconds(TimeBetweenWaves)); waveEnemiesToSpawn = ActiveWave.EnemiesToSpawn; UEnemyDestroyedListener.setNumberOfEnemies(waveEnemiesToSpawn); setRespawnCooldown(); spawnWaveIndicator(); spawning = true; UNewWaveListener.ReportNewWave(); }
void Start() { UEnemyDestroyedListener.setNumberOfEnemies(0); }