C# Class 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
Inheritance: CharacterAction
Datei anzeigen Open project: llafuente/unity-platformer Class Usage Examples

Public Properties

Property Type Description
jumpProperties JumpVariableHeightProperties

Public Methods

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

Method Details

ForceJump() public method

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
return void

GetPostUpdateActions() public method

public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

Jump() public method

Try to jump
public Jump ( Jump j ) : void
j Jump
return void

OnActionDown() public method

input.onActionDown callback
public OnActionDown ( string _action ) : void
_action string
return void

OnActionUp() public method

input.onActionUp callback
public OnActionUp ( string _action ) : void
_action string
return void

OnEnable() public method

public OnEnable ( ) : void
return void

PerformAction() public method

public PerformAction ( float delta ) : void
delta float
return void

WantsToUpdate() public method

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
return int

Property Details

jumpProperties public_oe property

Jump Properties
public JumpVariableHeightProperties,UnityPlatformer jumpProperties
return JumpVariableHeightProperties