| StateMachineTLabelAddState Method (TLabel, Action, Action) |
Adds a state, and the delegates that should run
when the state starts,
and when the state machine is updated.
Any delegate can be null, and wont be executed.
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public void AddState(
TLabel label,
Action onStart,
Action onUpdate
)
Parameters
- label
- Type: TLabel
The name of the state to add. - onStart
- Type: SystemAction
The action performed when the state is entered. - onUpdate
- Type: SystemAction
The action performed when the state machine is updated in the given state.
See Also