Hi, all. Why eval not support wait in Coroutine?
I want run one long time Coroutine script in eval, but eval skip WaitForSeconds() without delay.
Maybe you have other ideas?
var z=0;
var scr="z=z+1;WaitForSeconds(1);//other code";
function Do () {
Debug.Log("Do now");
eval(scr);
Debug.Log("Do any seconds later"+z);
eval(scr);
Debug.Log("Do any seconds later"+z);
eval(scr);
Debug.Log("Do any seconds later"+z);
}
function Start () {
StartCoroutine("Do");
Debug.Log("Start complte");
}