unity 2d quite game and close it code example Example: quit button unity void quitGame() { Application.Quit(); }