public void OnclickBtn() { if (gamecont.turn == 3) { return; } //print ("Button Clicked"); Img.sprite = sprit; Transform child = this.transform.GetChild(0); if (child.tag == "object") { child.gameObject.SetActive(true); } thisbtn.interactable = false; //Debug.Log ("SetValue1 : " + btnid); gamecont.DataMatch(btnid); }