public void Click() { if (!isSelected) { GetComponent <Text>().fontStyle = FontStyle.Bold; isSelected = true; selected = this.transform; infoTxt.DisplayObject(item); } else { isSelected = false; infoTxt.DisplayObject(null); GetComponent <Text>().fontStyle = FontStyle.Normal; } }