Initializes a state machine with the specified states.
On This Page
An array of state objects. Each object in the array must be of a unique subclass of GKState.
A new state machine.
The newly created state machine’s currentState property is nil. To choose and enter an initial state, use the enter(_:) method.