TransitionBase$1
ZEPETO.Character.Controller.TransitionBase$1
Base 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
↳↳
Transition$1
Constructors
constructor
• new TransitionBase$1<TEnum
>()
Type parameters
Name | Description |
---|---|
TEnum | Defines 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
Name | Type |
---|---|
value | number |
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
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.