Свойство | Type | Description | |
---|---|---|---|
bnIsTheRocketCompleted | bool | ||
sfxPartAdded | |||
sfxSpaceShipReady | |||
tPlatformElevator | Transform |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
IsTheRocketCompleted ( ) : bool |
Check if the player completed the completed the rocket
|
public PlayerBroughtAPart ( Transform rocketPartToBeAdded ) : void | ||
rocketPartToBeAdded | Transform | |
Résultat | void |
public AudioClip,UnityEngine sfxPartAdded | ||
Résultat |
public AudioClip,UnityEngine sfxSpaceShipReady | ||
Résultat |