07-29-2018, 08:56 PM
In a nutshell:
- Train Car Manager (TrainCarManager.cs) adds a listener to the OnControlPointReached event of Spline Controller
- In that event listner, if the reached control point has a junction meta data (MDJunctionControl.cs) , it reads its value and selects the new spline accordingly.
- The UI tick is made using Unity's UI, and it updates the junction meta data.
You can always check how the scene 12_Train.unity is set up to see precisely how things work.
- Train Car Manager (TrainCarManager.cs) adds a listener to the OnControlPointReached event of Spline Controller
- In that event listner, if the reached control point has a junction meta data (MDJunctionControl.cs) , it reads its value and selects the new spline accordingly.
- The UI tick is made using Unity's UI, and it updates the junction meta data.
You can always check how the scene 12_Train.unity is set up to see precisely how things work.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.