unity quit game button code example
Example 1: quit button unity
void quitGame() {
Application.Quit();
}
Example 2: exit button unity code
void doExitGame() { Application.Quit(); }
Example 3: exit button unity code
void doExitGame() {
Application.Quit();
}