All of a sudden a scene of mine does no longer work.
The cause is that wait for seconds does not work as expected.
My following test script does not work in that scene, or any new scene I create, however it does work in other exisiting scenes.
I copied all my scripts to an old backup and there everything works fine, I export the scene to a package and import it to my up to date build and it again no longer works.
I copied all my scripts over as well and it simply refuses to work…
#pragma strict
function Start ()
{
Test();
}
function Test() :IEnumerator
{
Debug.Log("Start");
yield WaitForSeconds(0.01);
Debug.Log("End");
}
I never get to see the End message.
I replaced it with yield WaitForupdate() and it works fine, but that is not what I need