Example #1
0
        public void OnSlotUnSelected(CharacterEquipmentSlotBehaviour slot)
        {
            SelectedItemPanelBehaviour.gameObject.SetActive(false);
            SelectedItemPanelBehaviour.SetPanel(null);

            //MobileInventoryBehaviour.ClearSelection();
        }
Example #2
0
        public void OnSlotSelected(CharacterEquipmentSlotBehaviour slot)
        {
            SelectedItemPanelBehaviour.gameObject.SetActive(true);
            var itemInstance = slot.GetItemInstance();

            SelectedItemPanelBehaviour.SetPanel(itemInstance);

            if (slot.GetInstanceID().Equals(LegsSlot.GetInstanceID()))
            {
                ChestSlot.SetSelected(false);
                BootsSlot.SetSelected(false);
                RightHandSlot.SetSelected(false);
                LeftHandSlot.SetSelected(false);
            }
            else if (slot.GetInstanceID().Equals(BootsSlot.GetInstanceID()))
            {
                ChestSlot.SetSelected(false);
                LegsSlot.SetSelected(false);
                RightHandSlot.SetSelected(false);
                LeftHandSlot.SetSelected(false);
            }
            else if (slot.GetInstanceID().Equals(ChestSlot.GetInstanceID()))
            {
                BootsSlot.SetSelected(false);
                LegsSlot.SetSelected(false);
                RightHandSlot.SetSelected(false);
                LeftHandSlot.SetSelected(false);
            }
            else if (slot.GetInstanceID().Equals(RightHandSlot.GetInstanceID()))
            {
                BootsSlot.SetSelected(false);
                LegsSlot.SetSelected(false);
                ChestSlot.SetSelected(false);
                LeftHandSlot.SetSelected(false);
            }
            else if (slot.GetInstanceID().Equals(LeftHandSlot.GetInstanceID()))
            {
                BootsSlot.SetSelected(false);
                LegsSlot.SetSelected(false);
                ChestSlot.SetSelected(false);
                RightHandSlot.SetSelected(false);
            }

            MobileInventoryBehaviour.DisableButtons();

            MobileInventoryBehaviour.ClearSelection();
        }