The Escape Button is a Feature

While doing the space shooter demo, there was a missing feature: how to exit the game, it is, the user can start the game, enter in a new game and play it, but he doesn’t have the option to quit the game yet.

To do so, the Escape button can be used as the key to exit the game

To make it happen, the developer just needs to create a condition in the Update() function for checking if the Escape button is pressed, and execute the Application.Quit() function