Table of Contents

Class StateMachine<TLabel>

Namespace
Gamelogic.Extensions.Examples.StateMachine
Assembly
Assembly-CSharp.dll
public class StateMachine<TLabel>

Type Parameters

TLabel
Inheritance
StateMachine<TLabel>
Inherited Members
Extension Methods

Constructors

StateMachine()

public StateMachine()

Properties

CurrentState

public TLabel CurrentState { get; set; }

Property Value

TLabel

Methods

AddState(TLabel, Action, Action, Action)

public void AddState(TLabel state, Action start = null, Action update = null, Action stop = null)

Parameters

state TLabel
start Action
update Action
stop Action

AddState<TSubStateLabel>(TLabel, StateMachine<TSubStateLabel>, TSubStateLabel)

public void AddState<TSubStateLabel>(TLabel label, StateMachine<TSubStateLabel> subMachine, TSubStateLabel subMachineStartState)

Parameters

label TLabel
subMachine StateMachine<TSubStateLabel>
subMachineStartState TSubStateLabel

Type Parameters

TSubStateLabel

Start()

public void Start()

Stop()

public void Stop()

Update()

public void Update()