Method Quit Quit() Exit to playmode if in the Editor or quit the application if in a built player Declaration protected void Quit()