private void MoveLine() { Vector3 point = Input.mousePosition; var offset = point - dragOrigin; var startPt = lineInfo.controlPts[StartPtIndex] as EndPt; var endPt = lineInfo.controlPts[EndPtIndex] as EndPt; var targetStartPtPos = startPt.transform.position + new Vector3(offset.x, offset.y, 0.0f); var targetEndPtPos = endPt.transform.position + new Vector3(offset.x, offset.y, 0.0f); if (inspectorTool.IsPosWithinMapViewArea(targetStartPtPos) && inspectorTool.IsPosWithinMapViewArea(targetEndPtPos)) { startPt.UpdatePosition(targetStartPtPos); endPt.UpdatePosition(targetEndPtPos); lineInspectorPanel.SetCurrInspection(lineInfo.controlPts[StartPtIndex].InspectionIndex); } dragOrigin = point; }
protected void UpdateCurrLineInspectionIndex() { lineInspectorPanel.SetCurrInspection(inspectionIndex); }
private void SelectLine() { lineInspectorPanel.SetCurrInspection(lineInfo.controlPts[StartPtIndex].InspectionIndex); lineInspectorPanel.ComputeAndUpdateLineProperties(); }