If you’re developing for web or PC, you’ll need a quit button so the user can exit your game without frustration. Here how to do it!
In your GameManager script, we want to tell the game that when we press the escape key — quit application.
Press enter or click to view image in full size
You can’t test this out in the Unity editor, however, once you build your game, you will have a fully functional escape key that quits your application.