11-26-2019, 08:38 PM
Hi,
I did some tests and here is what I found:
When instantiating an object using GameObject.Instantiate, its Start() method does not get called directly after the Instantiate call. So when you call controllerPrefabInstance.ApplyDeltaTime(2), it is done before the call to Start(). And it is in the Start method that the controller checks the value of PlayAutomatically to make the controller play. So if you want the code you posted to work, you need to manually call Play before calling ApplyDeltaTime.
Also, a reminder to you and other forum users: do not include Curvy Splines in the projects you share. This is a violation of the Asset Store Terms and Service. The only way to get Curvy Splines should be by buying it.
Have a nice day
I did some tests and here is what I found:
When instantiating an object using GameObject.Instantiate, its Start() method does not get called directly after the Instantiate call. So when you call controllerPrefabInstance.ApplyDeltaTime(2), it is done before the call to Start(). And it is in the Start method that the controller checks the value of PlayAutomatically to make the controller play. So if you want the code you posted to work, you need to manually call Play before calling ApplyDeltaTime.
Also, a reminder to you and other forum users: do not include Curvy Splines in the projects you share. This is a violation of the Asset Store Terms and Service. The only way to get Curvy Splines should be by buying it.
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.