예제 #1
0
        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;
            }
        }
예제 #2
0
 void ReserveCurve(IWaypointCurve curve)
 {
     curve.SetPosition(thisReservePosition);
     thisReservedCurves.Add(curve);
     curve.OnReserve();
 }