C# 클래스 CResource, astrochimps

상속: MonoBehaviour
파일 보기 프로젝트 열기: arcoelho01/astrochimps 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
associatedExtractor Transform
resourceLevel float
resourceType eResourceType

공개 메소드들

메소드 설명
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

메소드 상세

Awake() 공개 메소드

When the script is initialized
public Awake ( ) : void
리턴 void

BuildIt() 공개 메소드

Override from the CBaseEntity Build an extractor in this resource site
public BuildIt ( ) : void
리턴 void

CanWeBuildInThisResourceSite() 공개 메소드

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
리턴 bool

ExtractResource() 공개 메소드

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 ///
리턴 ExtractedResource

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

associatedExtractor 공개적으로 프로퍼티

public Transform associatedExtractor
리턴 Transform

resourceLevel 공개적으로 프로퍼티

public float resourceLevel
리턴 float

resourceType 공개적으로 프로퍼티

public eResourceType resourceType
리턴 eResourceType