private void SpawnNewWaveInfo(NewWaveInfo wave) { int rdm = wave.RandomNumberUnitPerSpawn(); for (int i = 0; i < rdm; i++) { SpawnSingleCreepsAtPosition(wave.Unit, enemyPlayer.PlayerIndex, RandomSpawnPosition()); } }
public QueueWaveInfo(NewWaveInfo waveInfo) { this.waveInfo = waveInfo; nextSpawnTimer = waveInfo.DelayTime; }