public void EvaluatePath() { List <Vector3> temppoints = new List <Vector3>(); for (int i = 0; i < paths.Count; ++i) { temppoints.Add(paths[i].position); } if (pathMode == PathMode.Bezier) { points = Curves.EvalBezier(temppoints, steps, math.up()); } else if (pathMode == PathMode.Bspline) { points = Curves.EvalBspline(temppoints, steps, true, math.up()); } else if (pathMode == PathMode.CRspline) { points = Curves.EvalCRspline(temppoints, steps, math.up()); } }