C# Class UnityPlatformer.Jump

Abstract class for Jumping logic.
显示文件 Open project: llafuente/unity-platformer Class Usage Examples

Public Properties

Property Type Description
character Character
ticks int

Public Methods

Method Description
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

Method Details

EndJump() public abstract method

Set final velocity
public abstract EndJump ( Vector3 &velocity ) : void
velocity Vector3
return void

IsBeforeApex() public abstract method

Did apex reached?
public abstract IsBeforeApex ( ) : bool
return bool

IsHanging() public abstract method

Did apex reached?
public abstract IsHanging ( ) : bool
return bool

Jumping() public method

Set velocity while jumping
public Jumping ( Vector3 &velocity, float delta ) : bool
velocity Vector3
delta float
return bool

Reset() public method

Reset jump data for next jump
public Reset ( ) : void
return void

StartJump() public abstract method

Set initial velocity
public abstract StartJump ( Vector3 &velocity ) : void
velocity Vector3
return void

Property Details

character public_oe property

Target Character
public Character character
return Character

ticks public_oe property

Ticks since jump start
public int ticks
return int