private void Swap(UI_ItemSlot slot1, UI_ItemSlot slot2) { if (slot1.TrySetItem(slot2.Item)) { slot2.Clear(); } }
private void Swap(UI_ItemSlot slot1, UI_ItemSlot slot2) { if (PlayerManager.LocalPlayerScript != null) { if (!PlayerManager.LocalPlayerScript.playerMove.allowInput || PlayerManager.LocalPlayerScript.playerMove.isGhost) { return; } } if (slot1.TrySetItem(slot2.Item)) { // slot2.Clear(); } }