IEnumerator TestNestNesting() { Debug.Log("TestNestNesting 1"); yield return(CoroutineMgr.GetInstance().StartCoroutine(TestNormalCoroutine())); Debug.Log("TestNestNesting 2"); }
public static CoroutineMgr GetInstance() { if (Instance == null) { Instance = new CoroutineMgr(); } return(Instance); }
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"); }
void Start() { CoroutineMgr.GetInstance().StartCoroutine(TestNesting()); //StartCoroutine(TestUnityNesting()); }
void LateUpdate() { CoroutineMgr.GetInstance().LateUpdate(); }