Skip to main content

PlayerActions

ZepetoInputControl.PlayerActions

Responsible for handling player-specific actions like movement, jumping, and double jumping.

Hierarchy

Constructors

constructor

new PlayerActions($wrapper)

Parameters

NameType
$wrapperZepetoInputControl

Overrides

System.ValueType.constructor

Accessors

DoubleJump

get DoubleJump(): InputAction

Retrieves the input action for player double jump.

Returns

InputAction


Jump

get Jump(): InputAction

Retrieves the input action for player jump.

Returns

InputAction


Move

get Move(): InputAction

Retrieves the input action for player movement.

Returns

InputAction


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

InputActionMap for player actions.


SetCallbacks

SetCallbacks($instance): void

Associates callback methods from instance with the respective player actions.

Parameters

NameTypeDescription
$instanceIPlayerActionsAn object that implements the IPlayerActions interface.

Returns

void