C# Class ProjectStorms.DetectFallingPassenger

This script detects falling passenger pirates that enter the triggerzone. It deactivates the passengers and adds to player score (by subtracting from regular score).
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
peopleLeftToCatch int
scoreText UnityEngine.UI.Text
textColour UnityEngine.Color

Public Methods

Method Description
Awake ( ) : void
OnTriggerEnter ( Collider a_other ) : void
Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider a_other ) : void
a_other UnityEngine.Collider
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

peopleLeftToCatch public property

public int peopleLeftToCatch
return int

scoreText public property

public Text,UnityEngine.UI scoreText
return UnityEngine.UI.Text

textColour public property

public Color,UnityEngine textColour
return UnityEngine.Color