public void Start() { Debug.Log("Start:: " + Thread.CurrentThread.IsBackground); // CoroutinueAsync CoroutinueAsync001 = new CoroutinueAsync(TestCoroutinueAsync001(), isMain); // StartCoroutine(CoroutinueAsync001); SuperCoroutine CoroutinueAsync002 = new SuperCoroutine(TesSuperCoroutine005(), isMain); StartCoroutine(CoroutinueAsync002); }
private IEnumerator TesSuperCoroutine005() { Debug.Log($"Time.Frame={Time.frameCount}"); var inner = new SuperCoroutine(TesSuperCoroutine006()); AsyncManager.Invoke(1, () => { inner.StopCoroutine(); }); yield return(inner.WaitDone()); Debug.Log("TesSuperCoroutine005"); }