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

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

Свойство Тип Описание
airshipMainCam AirshipCamBehaviour
animThrottleMult float
boostRumbleDurr float
boostRumbleStr float
fireShipParticles UnityEngine.GameObject
pitchForce float
yawForce float

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

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

Приватные методы

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

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

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

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

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

Clamps the input values into the [-1, 1] range.
public ClampInputs ( ) : void
Результат void

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

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

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

public PlayerFireshipInputs ( float a_Vertical, float a_Horizontal, bool a_select ) : void
a_Vertical float
a_Horizontal float
a_select bool
Результат void

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

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

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

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

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

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

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

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

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

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

Percentage of the base propeller animation speed to apply when moving.
public float animThrottleMult
Результат float

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

How long to rumble for.
public float boostRumbleDurr
Результат float

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

How strong to rumble.
public float boostRumbleStr
Результат float

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

public GameObject,UnityEngine fireShipParticles
Результат UnityEngine.GameObject

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

public float pitchForce
Результат float

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

public float yawForce
Результат float