1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | IEnumerator _TestMain() { while (true) { yield return null; Debug.Log(Time.frameCount + "F Outside"); yield return _TestB(); } } IEnumerator _TestB() { for (int i = 0; i < 6; i++) { yield return _TestBAU(i); Debug.Log("In for" + Time.frameCount); } } IEnumerator _TestBAU(float i) { if (i < 0) //never yield return null; } |
Direct link: https://paste.plurk.com/show/FtuK9O7rcBOZmrkLqG7N