From 771babe2353e5b850e50605f467d70669fad8561 Mon Sep 17 00:00:00 2001 From: Sagittaeri Date: Sat, 21 Jan 2017 18:08:42 +1100 Subject: [PATCH] auto populate spline points --- IronToad_UnityProject/Assets/Lighthouse.cs | 13 +++++++++++++ .../Assets/_Scenes/LighthouseTestScene.unity | Bin 42024 -> 41984 bytes 2 files changed, 13 insertions(+) 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; i5{8W&H7&jg3=9myKs?{&RsoP=m?6!;&lfUVmp9h0YJVe5HEs?aZJA0BFyNp`Dx2%naL9-uuNK{u~}!)A4UK?aviGx delta 156 zcmZoT!L;H869)rBn?3`>5{-=lfUVh?~~0YJVe5HEs?8BD&|BFvbv`Dx2%84XUL1PJ&mJa_saKG(Td{eyE? fzLiU(WWS63%xx}A%g?)XZhh!7`OZR(MT?jKMA9o5