I have made a button and I wrote a OnClick function for it, but there is no response when i click on it . I have dragged my gameobject into the button i have created and also selected my function
public Button button;
public Text buttonText;
public string playerSide;
public void playerMove()
{
Debug.Log ("function entered");
buttonText.text = playerSide;
button.interactable= false;
Debug.Log("button disabled");
}