void Start() { if (spline != null) { TargetPosition = spline.GetNextCatmullRomPosition(ref currentP, ref currentU); } }