public void itemUsed() { if (currentItem) { currentItem.Use(); ClearItemSlots(); MakeItemSlots(); if (currentItem.numberHad == 0) { SetTextBtn("", false); RemoveFromPI(); } } }
public void UseButtonPressed() { if (currentItem) { currentItem.Use(); //clear all the inventory slots //refill the slots ClearInventorySlots(); MakeInventorySlots(); if (currentItem.numberHeld == 0) { SetTextAndButton("", false); } } }