C# Класс UnityPlatformer.CharacterActionJump

Jump while on ground. The rest jumps, are managed here, but using jump properties/type elsewhere, just by calling Jump() / ForceJump()\n NOTE unity-platformer support multiple types of jumps. We just ship one type here, be free to extend!\n NOTE executionOrder should be -20\n TODO force one jump per press, force to release before another jump\n
Наследование: CharacterAction
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
jumpProperties JumpVariableHeightProperties

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

Метод Описание
ForceJump ( Jump j ) : void

Force Character to Jump! User must be sure of what they are doing... this doesn't check anything

GetPostUpdateActions ( ) : PostUpdateActions
Jump ( Jump j ) : void

Try to jump

OnActionDown ( string _action ) : void

input.onActionDown callback

OnActionUp ( string _action ) : void

input.onActionUp callback

OnEnable ( ) : void
PerformAction ( float delta ) : void
WantsToUpdate ( float delta ) : int

Listen input and Select the current Jump Other actions (with higher priority) can trigger Jumps using Jump(), and the next Frame CharacterActionJump willl take control!

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

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

Force Character to Jump! User must be sure of what they are doing... this doesn't check anything
public ForceJump ( Jump j ) : void
j Jump
Результат void

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

public GetPostUpdateActions ( ) : PostUpdateActions
Результат PostUpdateActions

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

Try to jump
public Jump ( Jump j ) : void
j Jump
Результат void

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

input.onActionDown callback
public OnActionDown ( string _action ) : void
_action string
Результат void

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

input.onActionUp callback
public OnActionUp ( string _action ) : void
_action string
Результат void

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

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

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

public PerformAction ( float delta ) : void
delta float
Результат void

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

Listen input and Select the current Jump Other actions (with higher priority) can trigger Jumps using Jump(), and the next Frame CharacterActionJump willl take control!
public WantsToUpdate ( float delta ) : int
delta float
Результат int

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

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

Jump Properties
public JumpVariableHeightProperties,UnityPlatformer jumpProperties
Результат JumpVariableHeightProperties