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.cspublic enum AppStates { 
    OVERLAY_OUTLINE, INIT_ANIMATION, SCANNING, GAME_RENDERING, GAME_PLAY, RESET_ALL, NONE 
} 

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.