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