bool TestPlanetTransformHandle(Vector3 pointerPosition, out PlanetTransformHandle handle) { var ray = _mainCamera.ScreenPointToRay(pointerPosition); if (_handleRepository.Test(ray, out var h) && h is PlanetTransformHandle planetHandle) { handle = planetHandle; return(true); } handle = null; return(false); }
void IEndDragHandler.OnEndDrag(PointerEventData eventData) { _dragging = false; _planetHandle?.SetHandling(false); _planetHandle = null; }