Class StateMachine
- Namespace
- VoxelPlayground.Utility
- Assembly
- GamePlay.dll
public class StateMachine : MonoBehaviour
- Inheritance
-
object
StateMachine
- Derived
-
- Extension Methods
-
Constructors
StateMachine()
Fields
currentState
[ShowInInspector]
protected State currentState
Field Value
- State
Properties
previousState
public State previousState { get; }
Property Value
- State
Methods
ChangeState(State)
public void ChangeState(State newState)
Parameters
newState State
FixedUpdate()
public virtual void FixedUpdate()
GetCurrentState()
public State GetCurrentState()
Returns
- State
InitState(State)
public virtual void InitState(State state)
Parameters
state State
Update()
public virtual void Update()