This:
Just wait until all Curvy stuff is initialized, then proceed with your other setup code. May be one frame, may be two for some reasons...
Code:
IEnumerator Start()
{
while (!mySpline.isInitialized)
yield return 0;
}
Just wait until all Curvy stuff is initialized, then proceed with your other setup code. May be one frame, may be two for some reasons...