Changing the active State and controlling the Scene

Our State Machine is presently changing States in the only Scene we've created, which is Scene1. The four States we created have the names BeginState, PlayState, WonState, and LostState. However, there could be a potential issue.

Let's say you wanted BeginState to display a cool fullscreen graphic. The issue is that behind that graphic, your game would be active. You won't be able to see the action because of the fullscreen graphic blocking your view. This is not an ideal situation.

Get Learning C# by Developing Games with Unity 3D Beginner's Guide 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.