void UpdatePathMouseInfo() { if (!hasUpdatedScreenSpaceLine || (screenSpaceLine != null && screenSpaceLine.TransformIsOutOfDate())) { screenSpaceLine = new ScreenSpacePolyLine(bezierPath, creator.transform, screenPolylineMaxAngleError, screenPolylineMinVertexDst); hasUpdatedScreenSpaceLine = true; } pathMouseInfo = screenSpaceLine.CalculateMouseInfo(); }
void UpdatePathMouseInfo() { if (!hasUpdatedScreenSpaceLine) { screenSpaceLine = new ScreenSpacePolyLine(bezierPath, screenPolylineMaxAngleError, screenPolylineMinVertexDst); hasUpdatedScreenSpaceLine = true; } pathMouseInfo = screenSpaceLine.CalculateMouseInfo(); }