C# Класс UnityPlatformer.Jump

Abstract class for Jumping logic.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
character Character
ticks int

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

Метод Описание
EndJump ( Vector3 &velocity ) : void

Set final velocity

IsBeforeApex ( ) : bool

Did apex reached?

IsHanging ( ) : bool

Did apex reached?

Jumping ( Vector3 &velocity, float delta ) : bool

Set velocity while jumping

Reset ( ) : void

Reset jump data for next jump

StartJump ( Vector3 &velocity ) : void

Set initial velocity

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

EndJump() публичный абстрактный Метод

Set final velocity
public abstract EndJump ( Vector3 &velocity ) : void
velocity Vector3
Результат void

IsBeforeApex() публичный абстрактный Метод

Did apex reached?
public abstract IsBeforeApex ( ) : bool
Результат bool

IsHanging() публичный абстрактный Метод

Did apex reached?
public abstract IsHanging ( ) : bool
Результат bool

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

Set velocity while jumping
public Jumping ( Vector3 &velocity, float delta ) : bool
velocity Vector3
delta float
Результат bool

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

Reset jump data for next jump
public Reset ( ) : void
Результат void

StartJump() публичный абстрактный Метод

Set initial velocity
public abstract StartJump ( Vector3 &velocity ) : void
velocity Vector3
Результат void

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

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

Target Character
public Character character
Результат Character

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

Ticks since jump start
public int ticks
Результат int