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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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