diff --git a/IronToad_UnityProject/Assets/Lighthouse.cs b/IronToad_UnityProject/Assets/Lighthouse.cs index cd388a2..33c0f12 100644 --- a/IronToad_UnityProject/Assets/Lighthouse.cs +++ b/IronToad_UnityProject/Assets/Lighthouse.cs @@ -21,6 +21,19 @@ public class Lighthouse : MonoBehaviour { splineCursor = splineCurve.GetComponent(); + if (splineDistantPoints == null || splineDistantPoints.Count == 0) + { + splineDistantPoints.Add(0f); + for (int i=1; i