Property | Type | Description | |
---|---|---|---|
STATE_DIE | StateBuildingCircle, | ||
STATE_IDLE | StateBuildingCircle, | ||
STATE_PROD | StateBuildingCircle, | ||
prefabUnit | GameObject | ||
sBot | int | ||
sLeft | int | ||
sRight | int | ||
sTop | int | ||
spawn | bool[] | ||
spawnBot | GameObject | ||
spawnLeft | GameObject | ||
spawnRight | GameObject | ||
spawnTop | GameObject |
Method | Description | |
---|---|---|
Start ( ) : void | ||
Update ( ) : void | ||
addSupport ( GameObject go ) : bool | ||
checkNewState ( ) : void | ||
createUnit ( GameObject spawnPoint ) : GameObject | ||
die ( ) : void | ||
getLastProdCount ( ) : int | ||
getNbSupport ( ) : int | ||
getNbSupportMax ( ) : int | ||
getSupport ( ) : List |
||
incrementLastProdCount ( ) : void | ||
playAnim ( ) : void | ||
prod ( ) : void | ||
removeSupport ( GameObject go ) : bool | ||
resetLastProdCount ( ) : void | ||
setCurrentState ( StateBuildingCircle, newState ) : void |
public createUnit ( GameObject spawnPoint ) : GameObject | ||
spawnPoint | GameObject | |
return | GameObject |
public removeSupport ( GameObject go ) : bool | ||
go | GameObject | |
return | bool |
public setCurrentState ( StateBuildingCircle, newState ) : void | ||
newState | StateBuildingCircle, | |
return | void |