Example #1
0
        IEnumerator Start_Async()
        {
            CoroutineLoadTest rTest = new CoroutineLoadTest();

            yield return(CoroutineManager.Instance.Start(rTest.Loading("Test1")));

            yield return(CoroutineManager.Instance.Start(rTest.Loading("Test2")));

            Debug.Log("Done.");
        }
Example #2
0
        IEnumerator Start_Async()
        {
            CoroutineLoadTest rTest = new CoroutineLoadTest();

            yield return(this.StartCoroutine(rTest.Loading("Test1")));

            yield return(this.StartCoroutine(rTest.Loading("Test2")));

            Debug.Log("Done.");
        }
Example #3
0
        private async Task Start_Async()
        {
            CoroutineLoadTest rTest = new CoroutineLoadTest();

            Debug.Log(await rTest.Loading("Test1"));
            Debug.Log(await rTest.Loading("Test2"));

            Debug.Log(await rTest.GetValueExampleAsync());

            Debug.Log("Done.");
        }