IEnumerator F0() { Log("f0 start"); yield return(new WaitForEndOfFrame()); Log("f0 WaitForEndOfFrame"); yield return(new WaitForSeconds(3)); Log("f0 WaitForSeconds"); yield return(_driver.StartCoroutine(FP())); Log("f0 wait fp"); yield return(F1()); Log("f0 wait F1"); yield break; Log("f0 break"); }
// Start is called before the first frame update void Start() { _driver = new CoroutineDriver(); _driver.StartCoroutine(F0()); }