Skip to main content

LocalPlayer

ZEPETO.Character.Controller.LocalPlayer

Class designed to manage the local player's actions, including movement, costume customization, and ZEPETO camera interactions.

Hierarchy

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

ZepetoCamera


zepetoPlayer

get zepetoPlayer(): ZepetoPlayer

ZEPETO player instance associated with the local player.

Returns

ZepetoPlayer

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

NameTypeDescription
$dirVector2Direction in which the character should move.

Returns

void

Move($dir): void

Moves the local player's ZEPETO character in a specified direction.

Parameters

NameTypeDescription
$dirVector3Direction 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

NameTypeDescription
$itemCodestringItem ID of the costume.
$complete?ActionOptional Callback function to handle the completion.

Returns

void


StopMoving

StopMoving(): void

Stops the local player's ZEPETO character.

Returns

void