Hello. After I upgrade unity from 4.0.1 to 4.1,
my app became to stop on “yield WaitForSeconds(3.0f)” forever.
Please tell me a way to solve this problem.
try:
yield WaitForSecondd(3);
or:
yield return new WaitForSeconds(3);
or:
yield new WaitForSeconds(3);
did you ever figure this out? having the same problem after upgrading.
I rewrite my code [A] to , and it seems to work fine.
However, I do not really understand(^_^;)
[A]:
function aaa(){
yield WaitForSeconds(3);
Debug.Log(“aaa Complete”);//<-this don’t display.
}
:
function aaa(){
aaaSub();
}
function aaaSub(){
yield WaitForSeconds(3);
Debug.Log(“aaa Complete”);//<-this display.
}