| StateMachineTLabelAddStateTSubStateLabel Method (TLabel, StateMachineTSubStateLabel, TSubStateLabel) |
Adds a sub state machine for the given state.
The sub state machine need not be updated, as long as this state machine
is being updated.
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax [VersionAttribute(1, 4, 0)]
public void AddState<TSubStateLabel>(
TLabel label,
StateMachine<TSubStateLabel> subMachine,
TSubStateLabel subMachineStartState
)
Parameters
- label
- Type: TLabel
The name of the state to add. - subMachine
- Type: Gamelogic.ExtensionsStateMachineTSubStateLabel
The sub-machine that will run during the given state. - subMachineStartState
- Type: TSubStateLabel
The starting state of the sub-machine.
Type Parameters
- TSubStateLabel
- The type of the sub-machine.
See Also