C# Class WaveManager, Corsair

Inheritance: MonoBehaviour
Afficher le fichier Open project: Final-Parsec/Corsair Class Usage Examples

Méthodes publiques

Свойство Type Description
enemyPrefabs List
numberOfWavesInMemory int
waveSpawnDelay float

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

Property Details

enemyPrefabs public_oe property

public List enemyPrefabs
Résultat List

numberOfWavesInMemory public_oe static_oe property

public static int numberOfWavesInMemory
Résultat int

waveSpawnDelay public_oe property

public float waveSpawnDelay
Résultat float