public void change(int i) { if (i < 4) { holdingSlot.Refresh(); } slots[i].sprite = inv[i].item.GetSprite(); slotTexts[i].text = (inv[i].count > 0)? inv[i].count + "" : ""; }
public void change(int i) { if (i < 4) { holdingSlot.Refresh(); } slots[i].sprite = inv[i].item.GetSprite(); slotTexts[i].text = (inv[i].count > 0)? inv[i].count + "" : ""; }