public void OnPointerDown(PointerEventData eventData) { var success = Hand.TakeEntityOnPositionInHandTry(SlotComponent.Data, eventData.position); if (success) { Hand.AddAmountInHandSourcePercent(100); } }
private void PressedRightMouse(PointerEventData eventData) { if (_mouseMode == MousePressedModeEnum.Left) { return; } SetMouseMode(MousePressedModeEnum.Right); var success = Hand.TakeEntityOnPositionInHandTry(SlotComponent.Data, eventData.position); if (success) { Hand.AddAmountInHandSourcePercent(100); } }