Пример #1
0
    public void OnDrag(PointerEventData eventData)
    {
        if (!active)
        {
            return;
        }

        var delta = (eventData).delta * (600.0f / Screen.height);

        if (MainTouchPressed && eventData.pointerId == MainTouchId)
        {
            CursorController.MoveCursor(delta * 2);
        }

        if (AsistTouchPressed && eventData.pointerId == AsistTouchId)
        {
            CursorController.NudgeCursor(delta);
        }
    }