Esempio n. 1
0
        public void OnBeginDrag(PointerEventData eventData)
        {
            dragging = true;

            ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.GRABBING);

            dragOffset = dragTarget.position - Input.mousePosition;
        }
Esempio n. 2
0
        private void StoppedMapInteraction()
        {
            interactingWithMap = false;
            navigation.gameObject.SetActive(false);

            ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.AUTO);

            StopAllCoroutines();
            StartCoroutine(HoverResize(defaultSize));
        }
Esempio n. 3
0
        private void StartedMapInteraction()
        {
            interactingWithMap = true;
            navigation.gameObject.SetActive(true);

            ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.POINTER);

            StopAllCoroutines();
            StartCoroutine(HoverResize(hoverSize));
        }
Esempio n. 4
0
 public void OnPointerExit(PointerEventData eventData)
 {
     StopAllCoroutines();
     ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.AUTO);
 }
Esempio n. 5
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     StartCoroutine(RotateWheelByScrollInput());
     ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.ERESIZE);
 }
Esempio n. 6
0
        public void OnEndDrag(PointerEventData eventData)
        {
            dragging = false;

            ChangePointerStyleHandler.ChangeCursor(ChangePointerStyleHandler.Style.POINTER);
        }