Road TO Dev — Escape! Let’s add a quit option.

Our game doesn’t know how to end. If we go fullscreen after building there is no way for the player to quit. So we need to create this. First, let’s create a new object to handle such tasks. Generally called a Game Manager.

You’ll notice when you use this specific name for the script it will change to a gear icon. That is just something Unity does and it is not to be worried about.

So now that we have our manager let’s get it set up for the quitting function.

Now, this code doesn’t work when run in the inspector you need to create a build and run that for it to work which I’ll be doing next.