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

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

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