C# 클래스 BuildingLaunchingPlatform, astrochimps

Implements the behaviour of the Launching Platform. The Launching Platform it's the place where the monkeys must bring the rocket parts, so it can be built and the game can be won Here, we check for all parts to assemble the rocket, and enabled them as the player bring them
상속: MonoBehaviour
파일 보기 프로젝트 열기: arcoelho01/astrochimps 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bnIsTheRocketCompleted bool
sfxPartAdded UnityEngine.AudioClip
sfxSpaceShipReady UnityEngine.AudioClip
tPlatformElevator Transform

공개 메소드들

메소드 설명
Awake ( ) : void
EnableLoadingOfMonkeys ( ) : void

Tasks to be performed when the rocket is complete Enable the elevator Disable the Loading Bay for the parts Create a Loading Bay for the monkeys

GetRocketObject ( ) : void

Gets the rocket object from the hierachy. This object have several sub-objects, one for each rocket part. What we do is first find the object with the name 'Mesh_'+ the part name. Then, in this object, we search for the first child, which will contain the mesh itself, with its materials and renderer

InitializeElevatorObject ( ) : void

Find the elevator object and disables it when the game start

PlayerBroughtAPart ( Transform rocketPartToBeAdded ) : void

What to do when the player sucessfully brought a rocket part to the launching platform

Start ( ) : void
getPartsOnTheRocket ( ) : int

비공개 메소드들

메소드 설명
IsTheRocketCompleted ( ) : bool

Check if the player completed the completed the rocket

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

EnableLoadingOfMonkeys() 공개 메소드

Tasks to be performed when the rocket is complete Enable the elevator Disable the Loading Bay for the parts Create a Loading Bay for the monkeys
public EnableLoadingOfMonkeys ( ) : void
리턴 void

GetRocketObject() 공개 메소드

Gets the rocket object from the hierachy. This object have several sub-objects, one for each rocket part. What we do is first find the object with the name 'Mesh_'+ the part name. Then, in this object, we search for the first child, which will contain the mesh itself, with its materials and renderer
public GetRocketObject ( ) : void
리턴 void

InitializeElevatorObject() 공개 메소드

Find the elevator object and disables it when the game start
public InitializeElevatorObject ( ) : void
리턴 void

PlayerBroughtAPart() 공개 메소드

What to do when the player sucessfully brought a rocket part to the launching platform
public PlayerBroughtAPart ( Transform rocketPartToBeAdded ) : void
rocketPartToBeAdded Transform
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

getPartsOnTheRocket() 공개 메소드

public getPartsOnTheRocket ( ) : int
리턴 int

프로퍼티 상세

bnIsTheRocketCompleted 공개적으로 프로퍼티

public bool bnIsTheRocketCompleted
리턴 bool

sfxPartAdded 공개적으로 프로퍼티

public AudioClip,UnityEngine sfxPartAdded
리턴 UnityEngine.AudioClip

sfxSpaceShipReady 공개적으로 프로퍼티

public AudioClip,UnityEngine sfxSpaceShipReady
리턴 UnityEngine.AudioClip

tPlatformElevator 공개적으로 프로퍼티

public Transform tPlatformElevator
리턴 Transform