예제 #1
0
        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);
        }
예제 #2
0
 void IEndDragHandler.OnEndDrag(PointerEventData eventData)
 {
     _dragging = false;
     _planetHandle?.SetHandling(false);
     _planetHandle = null;
 }