Example #1
0
 // Set name to be displayed as the title of the EntityStats panel
 public void SetDisplayEntity(EntityType type)
 {
     nameText.text = EntityUtils.GetDisplayName(type);
     nameTooltip.SetText(EntityUtils.GetDisplayDesc(type));
 }
Example #2
0
 public override string ToString()
 {
     return(unit ? EntityUtils.GetDisplayName(unit.Type) : position.ToString());
 }