C# Class ProjectStorms.AirshipDyingBehaviour

A simple script that sets the behaviour for the falling airship state. The player's ship will free-fall and the camera will stay in place and look at the ship.
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
airshipMainCam AirshipCamBehaviour
fallAcceleration float
timerUntilReset float

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnEnable ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

airshipMainCam public property

Handle to the airship camera script.
public AirshipCamBehaviour,ProjectStorms airshipMainCam
return AirshipCamBehaviour

fallAcceleration public property

How fast the player ship will fall, defaults to the Earth gravitational constant.
public float fallAcceleration
return float

timerUntilReset public property

How long should the player watch their ship falling until it resets and takes them to the Roulette screen - experiment with this.
public float timerUntilReset
return float