Main Menu Quit Button Wont Work

So I made a menu and start game works but when I click on disconnect nothing happens the button turns red here is the code and yes I put it to quit by the options
using UnityEngine;
using System.Collections;

public class LoadSceneOnClick : MonoBehaviour
{

// Use this for initialization
void Start()
{

}

// Update is called once per frame
void Update()
{

}

public void StartGame()
{

    Application.LoadLevel(1);

}

public void Quit()
{
    Application.Quit();
}

}

Are you still in the editor? I don’t think the game quits if you are just testing it.

  1. If u r trying to quit in unity editor than it won’t quit the game , just try to build the game and then test it.
  2. Make sure u chose the correct function in the event system in inspector