DisplayObject() публичный Метод

Sets the information display to the correct text for the object passed
public DisplayObject ( object obj ) : void
obj object
Результат void
Пример #1
0
 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;
     }
 }