C# Class BuildingCircle, RTSmini

Inheritance: Building
显示文件 Open project: Arihy/RTSmini Class Usage Examples

Public Properties

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

Public Methods

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

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

addSupport() public method

public addSupport ( GameObject go ) : bool
go GameObject
return bool

checkNewState() public method

public checkNewState ( ) : void
return void

createUnit() public method

public createUnit ( GameObject spawnPoint ) : GameObject
spawnPoint GameObject
return GameObject

die() public method

public die ( ) : void
return void

getLastProdCount() public method

public getLastProdCount ( ) : int
return int

getNbSupport() public method

public getNbSupport ( ) : int
return int

getNbSupportMax() public method

public getNbSupportMax ( ) : int
return int

getSupport() public method

public getSupport ( ) : List
return List

incrementLastProdCount() public method

public incrementLastProdCount ( ) : void
return void

playAnim() public method

public playAnim ( ) : void
return void

prod() public method

public prod ( ) : void
return void

removeSupport() public method

public removeSupport ( GameObject go ) : bool
go GameObject
return bool

resetLastProdCount() public method

public resetLastProdCount ( ) : void
return void

setCurrentState() public method

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

Property Details

STATE_DIE public_oe property

public StateBuildingCircle, STATE_DIE
return StateBuildingCircle,

STATE_IDLE public_oe property

public StateBuildingCircle, STATE_IDLE
return StateBuildingCircle,

STATE_PROD public_oe property

public StateBuildingCircle, STATE_PROD
return StateBuildingCircle,

prefabUnit public_oe property

public GameObject prefabUnit
return GameObject

sBot public_oe property

public int sBot
return int

sLeft public_oe property

public int sLeft
return int

sRight public_oe property

public int sRight
return int

sTop public_oe property

public int sTop
return int

spawn public_oe property

public bool[] spawn
return bool[]

spawnBot public_oe property

public GameObject spawnBot
return GameObject

spawnLeft public_oe property

public GameObject spawnLeft
return GameObject

spawnRight public_oe property

public GameObject spawnRight
return GameObject

spawnTop public_oe property

public GameObject spawnTop
return GameObject