App state

Let's define the app states now, as described in the beginning of this section.

Create a new C# script in your Scripts folder named AppStates and edit it as follows to define an enum of the states:

File: AppStates.cs
public enum AppStates { OVERLAY_OUTLINE, INIT_ANIMATION, SCANNING, GAME_RENDERING, GAME_PLAY, RESET_ALL, NONE }
..................Content has been hidden....................

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