Property | Type | Description | |
---|---|---|---|
building | bool | ||
buildingSound | |||
collecting | bool | ||
collectionAmount | float | ||
farmingSound | |||
harvesting | bool | ||
harvestingSpeed | int | ||
miningSound | |||
waitingForBuildingLocationSelection | bool | ||
woodCuttingSound |
Property | Type | Description | |
---|---|---|---|
buildableBuildings | RTSObjectType[] | ||
constructionPoint | Vector3 | ||
constructionRotation | Quaternion | ||
creationBuilding | GameObject | ||
creationBuildingConstruction | GameObject | ||
creationCollisionDetectorObject | GameObject | ||
currentProject | Building, |
Method | Description | |
---|---|---|
AssignBuildingProject ( Building, newProject ) : void | ||
CreateBuildingIA ( GameObject building, Vector3 coords ) : void | ||
CreateFinishedBuilding ( ) : void | ||
CreateOnConstructionBuilding ( ) : void | ||
CreateOnConstructionBuildingAI ( GameObject building, Vector3 coords ) : void | ||
GetActions ( ) : Action[] | ||
GetHarvestAmount ( ) : float |
Get the current amount of resource that the unit has harvested.
|
|
GetHarvestType ( ) : ResourceType, |
Get the current type of resource that the unit is harvesting.
|
|
IsBuilding ( ) : bool | ||
IsHarvesting ( ) : bool |
Check if the unit is currently harvesting.
|
|
PerformAction ( string actionToPerform ) : void | ||
RotateBuilding ( ) : void | ||
SetBuildingLocation ( ) : void |
Sets the location of the building on the building location selector to the current position.
|
|
StartHarvest ( Resource, resource, string tag ) : void | ||
StopBuildingLocationSelection ( ) : void | ||
StopHarvest ( ) : void |
Method | Description | |
---|---|---|
Animating ( ) : void | ||
Awake ( ) : void | ||
OnGUI ( ) : void | ||
OnMouseDown ( ) : void | ||
Update ( ) : void | ||
chargeSounds ( string objectName ) : void |
Method | Description | |
---|---|---|
Collect ( ) : void | ||
CreateBuilding ( RTSObjectType objectType ) : void | ||
Deposit ( ) : void | ||
FindResource ( string tag ) : Resource, | ||
StartBuildingLocationSelection ( GameObject creationBuildingTmp ) : void |
Starts the building location selection sequence, where the user has to click on the map in order to select the place where the building should be built.
|
|
findTownCenter ( ) : TownCenterBuilding, |
public AssignBuildingProject ( Building, newProject ) : void | ||
newProject | Building, | |
return | void |
public CreateBuildingIA ( GameObject building, Vector3 coords ) : void | ||
building | GameObject | |
coords | Vector3 | |
return | void |
public CreateOnConstructionBuilding ( ) : void | ||
return | void |
public CreateOnConstructionBuildingAI ( GameObject building, Vector3 coords ) : void | ||
building | GameObject | |
coords | Vector3 | |
return | void |
public PerformAction ( string actionToPerform ) : void | ||
actionToPerform | string | |
return | void |
public StartHarvest ( Resource, resource, string tag ) : void | ||
resource | Resource, | |
tag | string | |
return | void |
public StopBuildingLocationSelection ( ) : void | ||
return | void |
protected chargeSounds ( string objectName ) : void | ||
objectName | string | |
return | void |
protected RTSObjectType[] buildableBuildings | ||
return | RTSObjectType[] |
public AudioClip,UnityEngine buildingSound | ||
return |
protected Quaternion constructionRotation | ||
return | Quaternion |
protected GameObject creationBuildingConstruction | ||
return | GameObject |
protected GameObject creationCollisionDetectorObject | ||
return | GameObject |
public AudioClip,UnityEngine farmingSound | ||
return |
public AudioClip,UnityEngine miningSound | ||
return |
public bool waitingForBuildingLocationSelection | ||
return | bool |