C# Класс 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.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
airshipMainCam AirshipCamBehaviour
fallAcceleration float
stallYRevertMult float

Открытые методы

Метод Описание
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

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

FixedUpdate() публичный Метод

public FixedUpdate ( ) : void
Результат void

OnEnable() публичный Метод

public OnEnable ( ) : void
Результат void

SetAboveStallY() публичный Метод

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
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

airshipMainCam публичное свойство

Handle to the airship camera script.
public AirshipCamBehaviour,ProjectStorms airshipMainCam
Результат AirshipCamBehaviour

fallAcceleration публичное свойство

How fast the player ship will fall, defaults to the Earth gravitational constant.
public float fallAcceleration
Результат float

stallYRevertMult публичное свойство

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
Результат float