void ChangeItemInfo(ItemUI ui) { if (ui.DisplayedItem.item == null) { return; } description.SetText(ui.DisplayedItem.item.Description); itemName.SetText(ui.DisplayedItem.item.ItemName); itemImage.sprite = ui.DisplayedItem.item.SketchSprite; }
void ChangeItemInfo(ItemUI ui) { if (ui.DisplayedItem.item == null) { return; } description.SetText(ui.DisplayedItem.item.Description); itemName.SetText(ui.DisplayedItem.item.ItemName); itemImage.sprite = ui.DisplayedItem.item.SketchSprite; }