currentState
The state machine’s current state.
Declaration
var currentState: GKState? { get }Discussion
A state machine can be in only one of its states at a time. To transition to another state, call the enter(_:) method.
When you call the update(deltaTime:) method, the state machine calls the update(deltaTime:) method on its current state object.