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
Afficher le fichier Open project: patferguson/Storms-Project Class Usage Examples

Méthodes publiques

Свойство Type Description
airshipMainCam AirshipCamBehaviour
animThrottleMult float
boostRumbleDurr float
boostRumbleStr float
fireShipParticles UnityEngine.GameObject
pitchForce float
yawForce float

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Awake ( ) : void
Résultat void

ClampInputs() public méthode

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

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

PlayerFireshipInputs() public méthode

public PlayerFireshipInputs ( float a_Vertical, float a_Horizontal, bool a_select ) : void
a_Vertical float
a_Horizontal float
a_select bool
Résultat void

ResetTimer() public méthode

public ResetTimer ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

airshipMainCam public_oe property

Handle to the airship camera script.
public AirshipCamBehaviour,ProjectStorms airshipMainCam
Résultat AirshipCamBehaviour

animThrottleMult public_oe property

Percentage of the base propeller animation speed to apply when moving.
public float animThrottleMult
Résultat float

boostRumbleDurr public_oe property

How long to rumble for.
public float boostRumbleDurr
Résultat float

boostRumbleStr public_oe property

How strong to rumble.
public float boostRumbleStr
Résultat float

fireShipParticles public_oe property

public GameObject,UnityEngine fireShipParticles
Résultat UnityEngine.GameObject

pitchForce public_oe property

public float pitchForce
Résultat float

yawForce public_oe property

public float yawForce
Résultat float