C# Class BattleArea, RPGQuest

Inheritance: BaseSpawner
Show file Open project: hughrogers/RPGQuest Class Usage Examples

Public Properties

Property Type Description
enemyID int[]
enemyQuantity int[]
layerMask LayerMask
noGameover bool
respawnEnemy bool[]
respawnTime float[]
showStartMessage bool
spawnOffset Vector3[]
spawnOnEnter bool

Public Methods

Method Description
AddEnemy ( ) : void
BattleLost ( ) : IEnumerator
CheckRespawn ( Enemy, e ) : void
OnDrawGizmos ( ) : void
OnTriggerEnter ( Collider collider ) : void
OnTriggerExit ( Collider collider ) : void
RemoveEnemy ( int index ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
GetRandomAdd ( ) : Vector3
GetSpawnCenter ( ) : Vector3
RespawnAfter ( int index, float time ) : IEnumerator
SpawnAllEnemies ( ) : IEnumerator
SpawnEnemy ( int index, Vector3 castOrigin ) : bool

Method Details

AddEnemy() public method

public AddEnemy ( ) : void
return void

BattleLost() public method

public BattleLost ( ) : IEnumerator
return IEnumerator

CheckRespawn() public method

public CheckRespawn ( Enemy, e ) : void
e Enemy,
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider collider ) : void
collider Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider collider ) : void
collider Collider
return void

RemoveEnemy() public method

public RemoveEnemy ( int index ) : void
index int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

enemyID public property

public int[] enemyID
return int[]

enemyQuantity public property

public int[] enemyQuantity
return int[]

layerMask public property

public LayerMask layerMask
return LayerMask

noGameover public property

public bool noGameover
return bool

respawnEnemy public property

public bool[] respawnEnemy
return bool[]

respawnTime public property

public float[] respawnTime
return float[]

showStartMessage public property

public bool showStartMessage
return bool

spawnOffset public property

public Vector3[] spawnOffset
return Vector3[]

spawnOnEnter public property

public bool spawnOnEnter
return bool