private void OnEnable()
 {
     //Initialize the script and set up the first segment in the curve.
     displayer = target as CurveDisplayer;
     if (!displayer.createdFirstSegment)
     {
         displayer.initializePoints();
     }
 }