C# Class WaveManager, Corsair

Inheritance: MonoBehaviour
显示文件 Open project: Final-Parsec/Corsair Class Usage Examples

Public Properties

Property Type Description
enemyPrefabs List
numberOfWavesInMemory int
waveSpawnDelay float

Public Methods

Method Description
SpawnWave ( ) : void

Starts a wave from the upcomming Waves list. Ends the game when all the waves have been ran, all the enemies are dead, and the player didn't lose.

Private Methods

Method Description
Awake ( ) : void
CreateEnemies ( Wave, wave, Node, spawns ) : IEnumerator

Creates EnemyBases at the given spawn points.

DequeueWave ( ) : Wave,

Removes a Wave from upcomingWaves and will Enqueue a new Wave if required.

PopulateUpcomingWaves ( ) : void

Initializes the waves in upcomingWaves

Method Details

SpawnWave() public method

Starts a wave from the upcomming Waves list. Ends the game when all the waves have been ran, all the enemies are dead, and the player didn't lose.
public SpawnWave ( ) : void
return void

Property Details

enemyPrefabs public_oe property

public List enemyPrefabs
return List

numberOfWavesInMemory public_oe static_oe property

public static int numberOfWavesInMemory
return int

waveSpawnDelay public_oe property

public float waveSpawnDelay
return float