public void releaseOnHand() { Transform sloty = getMouseSlot(); if (sloty != null) { PlaceItem(inHand, sloty); inHand.y = 0; UpdateHand(); } else { inv.AddToSlotsAmount(inHand.x, inHand.y, true); inHand.y = 0; UpdateHand(); uSlots(); } }
public void releaseOnHand() { Transform sloty = getMouseSlot(); if (sloty != null) { PlaceItem(inHand, sloty); inHand.y = 0; UpdateHand(); } else { inv.AddToSlotsAmount(inHand.x, inHand.y, true); inHand.y = 0; UpdateHand(); uSlots(); } }