Add the OnGUI() method to StateManager as shown in the following screenshot. Begin the method on line 22:
What just happened?
Unity calls the OnGUI() method at least once per frame, but it could also be several times per frame. This means that the ShowIt() method on the active State will be also called for displaying graphics, text, and buttons.