public void OnPointerDown(PointerEventData eventData) { if (eventData.PointerIdIsLeftMouse()) { PressedLeftMouse(eventData); } if (eventData.PointerIdIsRightMouse()) { PressedRightMouse(eventData); } }
public void OnPointerUp(PointerEventData eventData) { if (eventData.PointerIdIsLeftMouse()) { if (_mouseMode != MousePressedModeEnum.Left) { return; } RemoveMouseMode(); _modeAddAmountInHandPerSecond = false; PutInSlotOrUndoTakeHand(eventData); } if (eventData.PointerIdIsRightMouse()) { if (_mouseMode != MousePressedModeEnum.Right) { return; } RemoveMouseMode(); PutInSlotOrUndoTakeHand(eventData); } }