Time for action – adding OnGUI to StateManager

Add the OnGUI() method to StateManager as shown in the following screenshot. Begin the method on line 22:

Time for action – adding OnGUI to StateManager

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.217.95