C# Class CircleUnits, RTSmini

Inheritance: Units
Exibir arquivo Open project: Arihy/RTSmini

Public Properties

Property Type Description
STATE_ATTACK StateCircleUnit,
STATE_BIRTH StateCircleUnit,
STATE_DEATH StateCircleUnit,
STATE_GOINGTO StateCircleUnit,
STATE_IDLE StateCircleUnit,
STATE_PROD StateCircleUnit,
STATE_TRIANGLEPROD StateCircleUnit,
audioAttack UnityEngine.AudioClip
audioPop UnityEngine.AudioClip

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
getSupporting ( ) : GameObject
move ( ) : void
setCurrentState ( StateCircleUnit, newState ) : void
signalProdDeath ( ) : void
suscribeSupport ( GameObject batProds ) : bool
unsuscribeSupport ( GameObject batProds ) : bool

Private Methods

Method Description
attack ( ) : void
checkNewState ( ) : void
playAnim ( ) : void
playSound ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

getSupporting() public method

public getSupporting ( ) : GameObject
return GameObject

move() public method

public move ( ) : void
return void

setCurrentState() public method

public setCurrentState ( StateCircleUnit, newState ) : void
newState StateCircleUnit,
return void

signalProdDeath() public method

public signalProdDeath ( ) : void
return void

suscribeSupport() public method

public suscribeSupport ( GameObject batProds ) : bool
batProds GameObject
return bool

unsuscribeSupport() public method

public unsuscribeSupport ( GameObject batProds ) : bool
batProds GameObject
return bool

Property Details

STATE_ATTACK public_oe property

public StateCircleUnit, STATE_ATTACK
return StateCircleUnit,

STATE_BIRTH public_oe property

public StateCircleUnit, STATE_BIRTH
return StateCircleUnit,

STATE_DEATH public_oe property

public StateCircleUnit, STATE_DEATH
return StateCircleUnit,

STATE_GOINGTO public_oe property

public StateCircleUnit, STATE_GOINGTO
return StateCircleUnit,

STATE_IDLE public_oe property

public StateCircleUnit, STATE_IDLE
return StateCircleUnit,

STATE_PROD public_oe property

public StateCircleUnit, STATE_PROD
return StateCircleUnit,

STATE_TRIANGLEPROD public_oe property

public StateCircleUnit, STATE_TRIANGLEPROD
return StateCircleUnit,

audioAttack public_oe property

public AudioClip,UnityEngine audioAttack
return UnityEngine.AudioClip

audioPop public_oe property

public AudioClip,UnityEngine audioPop
return UnityEngine.AudioClip