diff --git a/IronToad_UnityProject/Assets/Lighthouse.cs b/IronToad_UnityProject/Assets/Lighthouse.cs index 0cf9bb4..b7b2347 100644 --- a/IronToad_UnityProject/Assets/Lighthouse.cs +++ b/IronToad_UnityProject/Assets/Lighthouse.cs @@ -12,6 +12,7 @@ public class Lighthouse : MonoBehaviour public float speed = 200f; public float timePadding = 0.5f; public float timeBetweenPoints = 3f; + public AnimationCurve animationCurve; private BGCcCursor splineCursor; private int targetPoint = 0; @@ -63,7 +64,7 @@ public class Lighthouse : MonoBehaviour float distance = Mathf.Abs(end - start); LeanTween.value(gameObject, start, end, distance / speed + timePadding).setOnUpdate((float val)=>{ splineCursor.Distance = val; - }).setEaseInOutQuad().setOnComplete(moveToNextPoint); + }).setEase(animationCurve).setOnComplete(moveToNextPoint); }); } } diff --git a/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity b/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity index 96693f8..adf24cc 100644 Binary files a/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity and b/IronToad_UnityProject/Assets/_Scenes/LighthouseTestScene.unity differ