C# Class CollectResources, ES2015F

Inheritance: MonoBehaviour
Show file Open project: jgirald/ES2015F Class Usage Examples

Public Properties

Property Type Description
animator Animator
collectSpeed int
gatheringAnimationBools string>.Dictionary
goingToCollect bool
resourceBank ResourceValueDictionary
targetObject GameObject
unitMovement UnitMovement,

Public Methods

Method Description
collect ( ) : void
returnToCollect ( ) : void
startMovingToCollect ( GameObject targetResource ) : void
startMovingToStorage ( ) : void
store ( ) : void
totalCollected ( ) : int

Private Methods

Method Description
Awake ( ) : void
addResource ( ) : void

Method Details

collect() public method

public collect ( ) : void
return void

returnToCollect() public method

public returnToCollect ( ) : void
return void

startMovingToCollect() public method

public startMovingToCollect ( GameObject targetResource ) : void
targetResource GameObject
return void

startMovingToStorage() public method

public startMovingToStorage ( ) : void
return void

store() public method

public store ( ) : void
return void

totalCollected() public method

public totalCollected ( ) : int
return int

Property Details

animator public property

public Animator animator
return Animator

collectSpeed public property

public int collectSpeed
return int

gatheringAnimationBools public static property

public static Dictionary gatheringAnimationBools
return string>.Dictionary

goingToCollect public property

public bool goingToCollect
return bool

resourceBank public property

public ResourceValueDictionary resourceBank
return ResourceValueDictionary

targetObject public property

public GameObject targetObject
return GameObject

unitMovement public property

public UnitMovement, unitMovement
return UnitMovement,