public void UpdateDisplay() { if (isItem) { itemBack.color = Color.white; cost.text = player.GetItem(itemId).Quantity.ToString(); } else { if (player.CheckCost(skillCost, costType)) { itemBack.color = Color.white; itemBack.sprite = skillBackImg; } else { itemBack.color = disabled; itemBack.sprite = skillBackImgDisabled; } } }