PlayerActions
ZepetoInputControl.PlayerActions
Responsible for handling player-specific actions like movement, jumping, and double jumping.
Hierarchy
↳
PlayerActions
Constructors
constructor
• new PlayerActions($wrapper
)
Parameters
Name | Type |
---|---|
$wrapper | ZepetoInputControl |
Overrides
System.ValueType.constructor
Accessors
DoubleJump
• get
DoubleJump(): InputAction
Retrieves the input action for player double jump.
Returns
Jump
• get
Jump(): InputAction
Retrieves the input action for player jump.
Returns
Move
• get
Move(): InputAction
Retrieves the input action for player movement.
Returns
enabled
• get
enabled(): boolean
Indicates the current activation status of the player's input actions.
Returns
boolean
Methods
Disable
▸ Disable(): void
Deactivates the player action map, disabling player input actions.
Returns
void
Enable
▸ Enable(): void
Activates the player action map, enabling player input actions.
Returns
void
Get
▸ Get(): InputActionMap
Retrieves InputActionMap
associated with player actions.
Returns
InputActionMap
for player actions.
SetCallbacks
▸ SetCallbacks($instance
): void
Associates callback methods from instance with the respective player actions.
Parameters
Name | Type | Description |
---|---|---|
$instance | IPlayerActions | An object that implements the IPlayerActions interface. |
Returns
void