StateManager class to use the
IStateBase interface. This allows the
activeState variable to store all of the State class objects. Also add the code that does the switching to the next State:
StateManageras shown in the next screenshot.
The following is the output to the Console as you repeatedly press the Space bar key:
The State Machine starts with