waitforseconds not working

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 :slight_smile:

You have to use StartCoroutine(Test()); function for IEnumerator in C#

and check Time.timeScale maybe it’s 0

I am returning to the backup I made this morning, the issue is not there and the only thing I did today was finding a bug that I solved by changing a material on a prefab :confused: