07-11-2020, 03:05 PM
Hi
1- Once the locomotive reached the end, modify the Position and/or MovementDirection and/or other properties of the other controllers to have them do what they are supposed to do.
2- Add a listener like this
OnEndReached.AddListener(Listener);
while having the following method:
void Listener(CurvySplineMoveEventArgs arg0)
{
//your code
}
3- MovementDirection = MovementDirection.Backward;
Don't forget to look at the existing code (using CTRL+SHIFT+F if using visual studio, or the Find all References entry in the right click menu) to see how some specific member is used, it can help you understand how to use it in the future.
Was all this clear?
1- Once the locomotive reached the end, modify the Position and/or MovementDirection and/or other properties of the other controllers to have them do what they are supposed to do.
2- Add a listener like this
OnEndReached.AddListener(Listener);
while having the following method:
void Listener(CurvySplineMoveEventArgs arg0)
{
//your code
}
3- MovementDirection = MovementDirection.Backward;
Don't forget to look at the existing code (using CTRL+SHIFT+F if using visual studio, or the Find all References entry in the right click menu) to see how some specific member is used, it can help you understand how to use it in the future.
Was all this clear?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.