exit android button game unity script code example Example: quit button unity void quitGame() { Application.Quit(); }