void OnMouseDown()
{
if (EventSystem.current.IsPointerOverGameObject())
return;
}
_lastPosition = mousePosition;
private void OnMouseDrag()
if (_lastPosition == null)
Vector2 direction = mousePosition - _lastPosition.Value;