02-15-2017, 01:12 AM
Hi Jake,
I'm using the default Spline Controller script on a game object with a Spline assigned.
I'm looking to add an On Control Point Reached (CurvySplineMoveEventArgs) at runtime via code, so that the Spline Controller object triggers this event when it hits every control point.
The event is a function within the CurvyEventHandler, which is also being added to the same Spline Controller game object at runtime.
I'm having a heck of a time figuring this out. Any advice?
Thanks much,
Michael
I'm using the default Spline Controller script on a game object with a Spline assigned.
I'm looking to add an On Control Point Reached (CurvySplineMoveEventArgs) at runtime via code, so that the Spline Controller object triggers this event when it hits every control point.
The event is a function within the CurvyEventHandler, which is also being added to the same Spline Controller game object at runtime.
I'm having a heck of a time figuring this out. Any advice?
Thanks much,
Michael