Hello, i have this menu scene and i want to have the command, when i click on the Quit button the scene closes.
If you are creating a button, something like this would work:
void OnGUI(){
if (GUI.Button (new Rect (0, 0, Screen.width * .6f, Screen.height * .12f), "Quit", random1)) {
Application.Quit ();
}
}