Esempio n. 1
0
        public UIAnchorSelection(ref TextMeshProUGUI textMesh, ref DraggableButton draggablePad, ref LineRenderer line)
        {
            AnchorPicker = new AnchorSelector();
            AnchorPicker.CurrentAnchorTypeSelection = AnchorType.Point;
            m_AnchorsList = new List <IAnchor>();

            m_MeasureText  = textMesh;
            m_DraggablePad = draggablePad;
            m_Line         = line;
        }
        public UIAnchorSelection(TextMeshProUGUI textMesh, DraggableButton draggablePad, LineRenderer line, Func <ToggleMeasureToolAction.MeasureMode> measureModeGetter,
                                 Func <bool> vrEnableGetter, Func <Transform> vrControllerGetter)
        {
            AnchorPicker = new AnchorSelector();
            AnchorPicker.CurrentAnchorTypeSelection = ToggleMeasureToolAction.AnchorType.Point;
            m_AnchorsList = new List <SelectObjectMeasureToolAction.IAnchor>();

            m_MeasureText  = textMesh;
            m_DraggablePad = draggablePad;
            m_Line         = line;

            m_MeasureModeGetter  = measureModeGetter;
            m_VREnableGetter     = vrEnableGetter;
            m_VRControllerGetter = vrControllerGetter;
        }