September 2013
Beginner
292 pages
6h 19m
English
Once we modify BeginState, we'll essentially use it as a sort of template for creating all the other States, with just a few minor differences.
I will explain code flow once we have the State Machine operating.
Using the next screenshot of BeginState, make the following changes:
private StateManager manager;.public BeginState(StateManager managerRef).manager = managerRef;.
Follow these next steps three times to create the other State classes: PlayState, WonState, and LostState.
In the Solution window of MonoDevelop, perform the following steps: ...