The Escape Button is a Feature
Aug 22, 2022
Simple objective today, just adding the ability for Escape to exit my game. It’s not something that’s default, it has to be coded in yourself!
Easily done though, just going to my GameManager.cs and adding another if-then statement for Escape and setting it to Application.Quit(); when pressed. That’s all!
It won’t work in the Editor though, you have to Build to test it out.