public void InventorySlotClick(int _index) { if (!Inventory) { return; } if (DragItem.texture == null) { //Grab if (Inventory.items[_index].name == "" || Inventory.items[_index].Icon_Image == null) { return; } DragItem.enabled = true; DragItem.texture = Inventory.items[_index].Icon_Image; DragIndex = _index; } else { //Release string ItemData = Inventory.items[DragIndex].GetItemString(); Inventory.RemoteSetItem(DragIndex, Inventory.items[_index].GetItemString()); Inventory.RemoteSetItem(_index, ItemData); DragItem.texture = null; DragItem.enabled = false; LoadHudInventory(Inventory); } }