Class StateMachine<StateType>
public class StateMachine<StateType> where StateType : StateMachineState
Type Parameters
StateType
- Inheritance
-
StateMachine<StateType>
- Derived
- Inherited Members
- Extension Methods
Constructors
StateMachine()
public StateMachine()
Fields
CurrentState
public StateType CurrentState
Field Value
- StateType
Methods
RegisterState(StateType)
public void RegisterState(StateType state)
Parameters
state
StateType
SwitchState(Type)
public StateType SwitchState(Type gamestateType)
Parameters
gamestateType
Type
Returns
- StateType
SwitchState<T>()
public T SwitchState<T>() where T : StateType
Returns
- T
Type Parameters
T