예제 #1
0
        private void Update()

        {
            if (Input.GetMouseButtonDown((int)controllButton) &&
                Utils.GetUIElement(Input.mousePosition) == null)
            {
                isCapturing = true;
            }

            if (isCapturing)
            {
                UpdateRotation();
            }

            if (Input.GetMouseButtonUp((int)controllButton))
            {
                isCapturing = false;
            }
        }
예제 #2
0
        void Update()
        {
            var scroll = Input.mouseScrollDelta.y;

            if (scroll != 0)
            {
                if (Utils.GetUIElement(Input.mousePosition) == null)
                {
                    UpdateZoom(Input.mouseScrollDelta.y);
                }
            }

            UpdatePosition();

            if (Input.GetKeyDown(navigationReset))
            {
                ResetPosition();
            }
        }