public void OnQuitButton(){
Application.Quit();
}Hook that method up to the quit button.is that what you have?