private void DrawHermiteCurve(FlexibleScollBar.Point startPoint, FlexibleScollBar.Point endPoint) { FlexibleScollBar.Point lastPoint = startPoint; for (float i = 0; i < 1f; i += 0.01f) { FlexibleScollBar.Point nextPoint = FlexibleScollBar.GetHermiteCurvePoint(startPoint, endPoint, i); Handles.DrawLine(lastPoint.position, nextPoint.position); lastPoint = nextPoint; } }
void OnEnable() { t = (FlexibleScollBar)target; }