The Escape Button is a Feature
Jun 13, 2021
Objective: Implement the escape key logic to exit the game.
As mentioned in an earlier post, if the game is in fullscreen, there needs to be an escape function created or else you can’t exit/close the game. To fix this issue, we will create the logic within the GameManager.
Inside the update method run an if statement to check if the escape key has been pressed using the Input.GetKeyDown function and if called, get the application to quit.