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
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

