Beispiel #1
0
    private IEnumerator StartNewWave()
    {
        yield return(new WaitForSeconds(TimeBetweenWaves));

        waveEnemiesToSpawn = ActiveWave.EnemiesToSpawn;
        UEnemyDestroyedListener.setNumberOfEnemies(waveEnemiesToSpawn);
        setRespawnCooldown();

        spawnWaveIndicator();
        spawning = true;
        UNewWaveListener.ReportNewWave();
    }
Beispiel #2
0
 void Start()
 {
     UEnemyDestroyedListener.setNumberOfEnemies(0);
 }