03-06-2019, 11:02 AM
TLDR
Those events are of type CurvySplineMoveEvent, which inherits from UnityEvent, a events class provided by Unity. So you can treat them as any other Unity event, or use the functionalities provided by CurvySplineMoveEvent, like AddListenerOnce(...) that make sure that you don't have the same listner attached multiple times.
You have an example usage in one of the example scenes, TrainCarManager, in the setController method
Code:
newVehicleFleet[i].GetComponent<SplineController>().OnControlPointReached.AddListenerOnce(yourEventListner)
Those events are of type CurvySplineMoveEvent, which inherits from UnityEvent, a events class provided by Unity. So you can treat them as any other Unity event, or use the functionalities provided by CurvySplineMoveEvent, like AddListenerOnce(...) that make sure that you don't have the same listner attached multiple times.
You have an example usage in one of the example scenes, TrainCarManager, in the setController method
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.