C# 클래스 WaveManager, Corsair

상속: MonoBehaviour
파일 보기 프로젝트 열기: Final-Parsec/Corsair 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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