示例#1
0
    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);
    }
示例#2
0
    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");
    }