/// <summary> /// Responsible for weapon slot specific click events. /// </summary> void WeaponSlot(PointerEventData eventData) { if (equipmentSlot.GetEquipment() != null) { if (eventData.button == PointerEventData.InputButton.Right) { if (weaponDebug) // check if already equipped { DequipWeapon(); } else { EquipWeapon(); } } } else { if (MoveUI.instance.moveable == null) { OpenEquipmentBag(); } } }