public ConstArg( IWaypointCurveAdaptor adaptor, ICurveControlPoint[] controlPoints, ICurvePoint[] curvePoints ) : base( adaptor ) { thisControlPoints = controlPoints; thisCurvePoints = curvePoints; }
public CurveSegment( IWaypointCurveAdaptor waypointCurveAdaptor, ICurveControlPoint tailControlPoint, ICurveControlPoint headControlPoint ) { thisWaypointCurveAdaptor = waypointCurveAdaptor; thisControlPointPair = new ICurveControlPoint[] { tailControlPoint, headControlPoint }; }
List <IWaypointCurve> GetWaypointCurvesInChildren() { List <IWaypointCurve> result = new List <IWaypointCurve>(); int childCount = transform.childCount; for (int i = 0; i < childCount; i++) { Transform child = transform.GetChild(i); IWaypointCurveAdaptor curveAdaptor = GetWaypointCurveAdaptorOfChild(child); if (curveAdaptor != null && curveAdaptor.IsEnabled()) { result.Add(curveAdaptor.GetWaypointCurve()); } } foreach (IWaypointCurve curve in result) { int index = result.IndexOf(curve); curve.SetIndex(index); } return(result); }