Click or drag to resize

StateMachineTLabelAddState Method (TLabel, Action, Action, Action)

Adds a state, and the delegates that should run when the state starts, stops, 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
C#
public void AddState(
	TLabel label,
	Action onStart,
	Action onUpdate,
	Action onStop
)

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.
onStop
Type: SystemAction
The action performed when the state machine is left.
See Also