void DropItem(int i) { if (onRightPanel) { Item newItem = storageView.GetItem(); gameController.DropItem(newItem, playerUnit.posX, playerUnit.posY); storageView.SoftReset(); } else { if (secondaryStorageView.GetCurrentIndex() == playerUnit.GetLeftIndex() - 4) { playerUnit.EquipInactive(); FillUIReset(); } if (secondaryStorageView.GetCurrentIndex() == playerUnit.GetRightIndex() - 4) { playerUnit.EquipInactive(); FillUIReset(); } Item newItem = secondaryStorageView.GetItem(); gameController.DropItem(newItem, playerUnit.posX, playerUnit.posY); secondaryStorageView.SoftReset(); } }