Hi,
Here is the code you need:
The Pause call makes the controller pause starting from the next frame. It does not stop the movement currently processed this frame. To stop that movement, setting the Cancel property of the event to true is the key.
Please let me know if you need anything else
Have a nice day
Here is the code you need:
Code:
public void ControlPointReached(CurvySplineMoveEventArgs inArgs)
{
if (shouldStop)
{
inArgs.Sender.Pause();
inArgs.Cancel = true;
}
}
The Pause call makes the controller pause starting from the next frame. It does not stop the movement currently processed this frame. To stop that movement, setting the Cancel property of the event to true is the key.
Please let me know if you need anything else
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.