LocalPlayer
ZEPETO.Character.Controller.LocalPlayer
Class designed to manage the local player's actions, including movement, costume customization, and ZEPETO camera interactions.
Hierarchy
↳
LocalPlayer
Constructors
constructor
• new LocalPlayer()
Inherited from
UnityEngine.MonoBehaviour.constructor
Properties
movingAxis
• movingAxis: Transform
Movement central axis of the local player's ZEPETO character.
Accessors
zepetoCamera
• get
zepetoCamera(): ZepetoCamera
ZEPETO camera instance associated with the local player.
Returns
zepetoPlayer
• get
zepetoPlayer(): ZepetoPlayer
ZEPETO player instance associated with the local player.
Returns
Methods
DoubleJump
▸ DoubleJump(): void
Makes the local player's ZEPETO character double jump.
Returns
void
Jump
▸ Jump(): void
Makes the local player's ZEPETO character jump.
Returns
void
Move
▸ Move($dir
): void
Moves the local player's ZEPETO character in a specified direction.
Parameters
Name | Type | Description |
---|---|---|
$dir | Vector2 | Direction in which the character should move. |
Returns
void
▸ Move($dir
): void
Moves the local player's ZEPETO character in a specified direction.
Parameters
Name | Type | Description |
---|---|---|
$dir | Vector3 | Direction in which the character should move. |
Returns
void
SetCostume
▸ SetCostume($itemCode
, $complete?
): void
Changes the costume of the local player's ZEPETO character. Throws a general Exception
.
Parameters
Name | Type | Description |
---|---|---|
$itemCode | string | Item ID of the costume. |
$complete? | Action | Optional Callback function to handle the completion. |
Returns
void
StopMoving
▸ StopMoving(): void
Stops the local player's ZEPETO character.
Returns
void