Escape Button to Quit: GDJ16

Brett Blandford
May 30, 2021

When you build a Unity application that is played in a fullscreen mode, there has to be a way to quit the application. If this is not implemented, people that use this application will only be able to quit the application through the task manager.

Luckily, this is very simple to implement:

This snippet of code was put into the Update method of my GameManager. With this code, I will be able to leave my game by hitting the escape key when it is built!

End of a short GDJ 16!

--

--