private void SetStatViews(Item item) { if (item.Type == ItemType.Weapon || item.Type == ItemType.Armor) { StatInfo[] statInfo = InventoryUtil.GetStatInfo(item, spriteBoard); itemInfoView.SetStatViews(statInfo); } }
public void ShowItem(ItemRef item) { itemInfoView.SetView(item); itemInfoView.SetStatViews(InventoryUtil.GetStatInfo(item.ReferencedItem, spriteBoard)); }