Transition$1
ZEPETO.Character.Controller.Transition$1
Generic class for defining transitions between states in a state machine.
Type parameters
Name | Description |
---|---|
TEnum | Type of state, constrained to be an enumeration. |
Hierarchy
TransitionBase$1
<TEnum
>↳
Transition$1
Constructors
constructor
• new Transition$1<TEnum
>()
Type parameters
Name | Description |
---|---|
TEnum | Defines the type that influences the available options, functionality, and behavior of the Transition$1 object. |
Inherited from
Accessors
Duration
• get
Duration(): number
Time duration the transition should take from start to end (in seconds).
Returns
number
Inherited from
TransitionBase$1.Duration
• set
Duration(value
): void
Time duration the transition should take from start to end (in seconds).
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
TransitionBase$1.Duration
From
• get
From(): TEnum
State from which the transition starts.
Returns
TEnum
IsRunning
• get
IsRunning(): boolean
Indicates whether the transition is currently in the status of StateStatus.Enter
or StateStatus.Update
.
Returns
boolean
Inherited from
TransitionBase$1.IsRunning
Status
• get
Status(): StateStatus
Status of the transition.
Returns
Inherited from
TransitionBase$1.Status
To
• get
To(): TEnum
State to which the transition will occur.
Returns
TEnum
Inherited from
TransitionBase$1.To
Methods
Check
▸ Check(): boolean
Checks if the conditions for invoking a transition are met.
Returns
boolean
true
if the transition's conditions are met.