public void ChangeItem(int itemId, Sprite item) { isItem = true; this.itemId = itemId; itemBack.sprite = itemBackImg; this.item.sprite = item; cost.text = player.GetItem(itemId).Quantity.ToString(); cost.color = itemColor; UpdateDisplay(); }