C# Class BattleArea, RPGQuest

Inheritance: BaseSpawner
Mostra 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_oe property

public int[] enemyID
return int[]

enemyQuantity public_oe property

public int[] enemyQuantity
return int[]

layerMask public_oe property

public LayerMask layerMask
return LayerMask

noGameover public_oe property

public bool noGameover
return bool

respawnEnemy public_oe property

public bool[] respawnEnemy
return bool[]

respawnTime public_oe property

public float[] respawnTime
return float[]

showStartMessage public_oe property

public bool showStartMessage
return bool

spawnOffset public_oe property

public Vector3[] spawnOffset
return Vector3[]

spawnOnEnter public_oe property

public bool spawnOnEnter
return bool