how to make a button to quit the application in unity code example
Example 1: quit button unity
void quitGame() {
Application.Quit();
}
Example 2: exit game unity
//Quit/Stop Game
Application.Quit();
Example 3: exit button unity code
void doExitGame() { Application.Quit(); }
Example 4: exit button unity code
void doExitGame() {
Application.Quit();
}