Esempio n. 1
0
        IEnumerator TestNestNesting()
        {
            Debug.Log("TestNestNesting 1");
            yield return(CoroutineMgr.GetInstance().StartCoroutine(TestNormalCoroutine()));

            Debug.Log("TestNestNesting 2");
        }
Esempio n. 2
0
 public static CoroutineMgr GetInstance()
 {
     if (Instance == null)
     {
         Instance = new CoroutineMgr();
     }
     return(Instance);
 }
Esempio n. 3
0
        IEnumerator TestNesting()
        {
            Debug.Log("TestNesting 1");
            yield return(new WaitForSeconds(2.5f));

            Debug.Log("TestNesting 2");
            yield return(CoroutineMgr.GetInstance().StartCoroutine(TestNormalCoroutine()));

            Debug.Log("TestNesting 3");
            yield return(CoroutineMgr.GetInstance().StartCoroutine(TestWaitFor()));

            Debug.Log("TestNesting 4");
            yield return(CoroutineMgr.GetInstance().StartCoroutine(TestNestNesting()));

            Debug.Log("TestNesting 5");
        }
Esempio n. 4
0
 void Start()
 {
     CoroutineMgr.GetInstance().StartCoroutine(TestNesting());
     //StartCoroutine(TestUnityNesting());
 }
Esempio n. 5
0
 void LateUpdate()
 {
     CoroutineMgr.GetInstance().LateUpdate();
 }