DoubleJumpComp:

The doubleJump component.

groupComponent Types

numJumps: number

Number of jumps allowed.

doubleJump(force?: number ): void

Performs double jump (the initial jump only happens if player is grounded).

onDoubleJump(action: ()=>void ): KEventController

Register an event that runs when the object performs the second jump when double jumping.