C# Class ProjectStorms.AirshipSuicideBehaviour

This ship determines how the ship moves once the player has decided to "commit suicide" and play as a kamikaze 'fire ship'. Compared to regular movement, this time the airship controls like a missile - the player has less control.
Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: patferguson/Storms-Project Class Usage Examples

Public Properties

Property Type Description
airshipMainCam AirshipCamBehaviour
animThrottleMult float
boostRumbleDurr float
boostRumbleStr float
fireShipParticles UnityEngine.GameObject
pitchForce float
yawForce float

Public Methods

Method Description
Awake ( ) : void
ClampInputs ( ) : void

Clamps the input values into the [-1, 1] range.

FixedUpdate ( ) : void
PlayerFireshipInputs ( float a_Vertical, float a_Horizontal, bool a_select ) : void
ResetTimer ( ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
CalculateTorque ( ) : void

Calculates the rotation forces on the ship, see the standard assets example for more.

Rocket ( ) : void

Moves the player's ship forward with the rocket speed.

SelectButtonReleased ( ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

ClampInputs() public method

Clamps the input values into the [-1, 1] range.
public ClampInputs ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

PlayerFireshipInputs() public method

public PlayerFireshipInputs ( float a_Vertical, float a_Horizontal, bool a_select ) : void
a_Vertical float
a_Horizontal float
a_select bool
return void

ResetTimer() public method

public ResetTimer ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

airshipMainCam public_oe property

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

animThrottleMult public_oe property

Percentage of the base propeller animation speed to apply when moving.
public float animThrottleMult
return float

boostRumbleDurr public_oe property

How long to rumble for.
public float boostRumbleDurr
return float

boostRumbleStr public_oe property

How strong to rumble.
public float boostRumbleStr
return float

fireShipParticles public_oe property

public GameObject,UnityEngine fireShipParticles
return UnityEngine.GameObject

pitchForce public_oe property

public float pitchForce
return float

yawForce public_oe property

public float yawForce
return float