C# Class ProjectStorms.AirshipStallingBehaviour

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

Méthodes publiques

Свойство Type Description
airshipMainCam AirshipCamBehaviour
fallAcceleration float
stallYRevertMult float

Méthodes publiques

Méthode Description
Awake ( ) : void
FixedUpdate ( ) : void
OnEnable ( ) : void
SetAboveStallY ( float a_stallY ) : void

Notifies this script that the player entered the state because they were above the stall Y. Will reset when they fall below the limit again.

Start ( ) : void
Update ( ) : void

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

SetAboveStallY() public méthode

Notifies this script that the player entered the state because they were above the stall Y. Will reset when they fall below the limit again.
public SetAboveStallY ( float a_stallY ) : void
a_stallY float
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

fallAcceleration public_oe property

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

stallYRevertMult public_oe property

Multiplier to revert the player's control at. E.g. If 0.9 only revert to the control state if the player is below 90% of the stallY and moving down.
public float stallYRevertMult
Résultat float