C# Class 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
Inheritance: MonoBehaviour
Afficher le fichier Open project: arcoelho01/astrochimps Class Usage Examples

Méthodes publiques

Свойство Type Description
bnIsTheRocketCompleted bool
sfxPartAdded UnityEngine.AudioClip
sfxSpaceShipReady UnityEngine.AudioClip
tPlatformElevator Transform

Méthodes publiques

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

Private Methods

Méthode Description
IsTheRocketCompleted ( ) : bool

Check if the player completed the completed the rocket

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

EnableLoadingOfMonkeys() public méthode

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
Résultat void

GetRocketObject() public méthode

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
Résultat void

InitializeElevatorObject() public méthode

Find the elevator object and disables it when the game start
public InitializeElevatorObject ( ) : void
Résultat void

PlayerBroughtAPart() public méthode

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

Start() public méthode

public Start ( ) : void
Résultat void

getPartsOnTheRocket() public méthode

public getPartsOnTheRocket ( ) : int
Résultat int

Property Details

bnIsTheRocketCompleted public_oe property

public bool bnIsTheRocketCompleted
Résultat bool

sfxPartAdded public_oe property

public AudioClip,UnityEngine sfxPartAdded
Résultat UnityEngine.AudioClip

sfxSpaceShipReady public_oe property

public AudioClip,UnityEngine sfxSpaceShipReady
Résultat UnityEngine.AudioClip

tPlatformElevator public_oe property

public Transform tPlatformElevator
Résultat Transform