示例#1
0
 private void Swap(UI_ItemSlot slot1, UI_ItemSlot slot2)
 {
     if (slot1.TrySetItem(slot2.Item))
     {
         slot2.Clear();
     }
 }
示例#2
0
        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();
            }
        }