public void SetItem(Item item) { Item = item; var itemSetting = ItemConfig.GetItemSetting(Item.ItemName); _image.sprite = itemSetting.Sprite; _image.color = itemSetting.Color; }
public void SetItem(Item item) { Item = item; var itemSetting = ItemConfig.GetItemSetting(Item.ItemName); _image.sprite = itemSetting.Sprite; _image.color = itemSetting.Color; }