DisplayObject() public méthode

Sets the information display to the correct text for the object passed
public DisplayObject ( object obj ) : void
obj object
Résultat void
 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;
     }
 }