Skip to main content

TransitionBase$1

ZEPETO.Character.Controller.TransitionBase$1

Base class for defining transitions between states in a state machine.

Type parameters

NameDescription
TEnumType of state, constrained to be an enumeration.

Hierarchy

Constructors

constructor

new TransitionBase$1<TEnum>()

Type parameters

NameDescription
TEnumDefines the type that influences the available options, functionality, and behavior of the TransitionBase$1 object.

Inherited from

System.Object.constructor

Accessors

Duration

get Duration(): number

Time duration the transition should take from start to end (in seconds).

Returns

number

set Duration(value): void

Time duration the transition should take from start to end (in seconds).

Parameters

NameType
valuenumber

Returns

void


IsRunning

get IsRunning(): boolean

Indicates whether the transition is currently in the status of StateStatus.Enter or StateStatus.Update.

Returns

boolean


Status

get Status(): StateStatus

Status of the transition.

Returns

StateStatus


To

get To(): TEnum

State to which the transition will occur.

Returns

TEnum

Methods

Check

Check(): boolean

Checks if the conditions for invoking a transition are met.

Returns

boolean

true if the transition's conditions are met.