public void ConsumeItem() { if (content.Count == 0) { return; } Item currentItem = content[contentCurrentIndex]; PlayerHealth.instance.HealPlayer(currentItem.hpGiven); playerEffects.AddSpeed(currentItem.speedGiven, currentItem.speedDuration); content.Remove(currentItem); GetNextItem(); UpdateInventoryUI(); }