C# Class CResource, astrochimps

Inheritance: MonoBehaviour
Afficher le fichier Open project: arcoelho01/astrochimps Class Usage Examples

Méthodes publiques

Свойство Type Description
associatedExtractor Transform
resourceLevel float
resourceType eResourceType

Méthodes publiques

Méthode Description
Awake ( ) : void

When the script is initialized

BuildIt ( ) : void

Override from the CBaseEntity Build an extractor in this resource site

CanWeBuildInThisResourceSite ( ) : bool

Tell if we can scavenge this resource site. To do this, it can't have an extractor yet, and must have resources left

ExtractResource ( float amount ) : ExtractedResource

Extract a certain amount of metal

Update ( ) : void

Method Details

Awake() public méthode

When the script is initialized
public Awake ( ) : void
Résultat void

BuildIt() public méthode

Override from the CBaseEntity Build an extractor in this resource site
public BuildIt ( ) : void
Résultat void

CanWeBuildInThisResourceSite() public méthode

Tell if we can scavenge this resource site. To do this, it can't have an extractor yet, and must have resources left
public CanWeBuildInThisResourceSite ( ) : bool
Résultat bool

ExtractResource() public méthode

Extract a certain amount of metal
public ExtractResource ( float amount ) : ExtractedResource
amount float /// Float with the amount of resource to be extracted. This value depends of the extractor level ///
Résultat ExtractedResource

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

associatedExtractor public_oe property

public Transform associatedExtractor
Résultat Transform

resourceLevel public_oe property

public float resourceLevel
Résultat float

resourceType public_oe property

public eResourceType resourceType
Résultat eResourceType