public void SendItemToTheGround(GridItem _gridItem) { Item item = _gridItem.GetItemReference(); for (int i = 0; i < _gridItem.GetItemCount(); i++) { PlayerPickUp.CreatePickupableItem(item, 2); } }
public void AddCurrentItemToInventory(bool Equip) { if (_gridItem != null) { Item item = _gridItem.GetItemReference(); for (int i = 0; i < _gridItem.GetItemCount(); i++) { Inventory.AddToInventory(item, Equip, true); } ReleaseCurrentDraggedItem(); } }