public void RemoveWaypointCurveToReserve(IWaypointCurve curve) { if (thisCurveSequence.Contains(curve)) { curve.SetPosition(thisReservePosition); List <IWaypointCurve> reducedSequence = new List <IWaypointCurve>(thisCurveSequence); reducedSequence.Remove(curve); ReserveCurve(curve); thisCurveSequence = reducedSequence; } }
void ReserveCurve(IWaypointCurve curve) { curve.SetPosition(thisReservePosition); thisReservedCurves.Add(curve); curve.OnReserve(); }