C# Класс WaveManager, Corsair

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
enemyPrefabs List
numberOfWavesInMemory int
waveSpawnDelay float

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

SpawnWave() публичный Метод

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
Результат void

Описание свойств

enemyPrefabs публичное свойство

public List enemyPrefabs
Результат List

numberOfWavesInMemory публичное статическое свойство

public static int numberOfWavesInMemory
Результат int

waveSpawnDelay публичное свойство

public float waveSpawnDelay
Результат float