public void SetNameText(string name, item_type_category type) { switch (type) { case item_type_category.ItemVisualAccessory: name += " (Clothing)"; break; case item_type_category.ItemToy: case item_type_category.ItemInfoTool: name += " (Widget)"; break; } TextName.text = name; }
public static string GetDisplayName(this item_type_category aitem_type_category) { return(Articy.Unity.ArticyTypeSystem.GetArticyType("item_type_category").GetEnumValue(((int)(aitem_type_category))).DisplayName); }