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
Datei anzeigen Open project: arcoelho01/astrochimps Class Usage Examples

Public Properties

Property Type Description
bnIsTheRocketCompleted bool
sfxPartAdded UnityEngine.AudioClip
sfxSpaceShipReady UnityEngine.AudioClip
tPlatformElevator Transform

Public Methods

Method 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

Method Description
IsTheRocketCompleted ( ) : bool

Check if the player completed the completed the rocket

Method Details

Awake() public method

public Awake ( ) : void
return void

EnableLoadingOfMonkeys() public method

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
return void

GetRocketObject() public method

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
return void

InitializeElevatorObject() public method

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

PlayerBroughtAPart() public method

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

Start() public method

public Start ( ) : void
return void

getPartsOnTheRocket() public method

public getPartsOnTheRocket ( ) : int
return int

Property Details

bnIsTheRocketCompleted public_oe property

public bool bnIsTheRocketCompleted
return bool

sfxPartAdded public_oe property

public AudioClip,UnityEngine sfxPartAdded
return UnityEngine.AudioClip

sfxSpaceShipReady public_oe property

public AudioClip,UnityEngine sfxSpaceShipReady
return UnityEngine.AudioClip

tPlatformElevator public_oe property

public Transform tPlatformElevator
return Transform