public Coroutine StartCoroutine(IEnumerator routine) { //LogUtils.Debug("CoroutineManager.StartCoroutine"); if (disposed) { return(null); } var coroutine = new Coroutine(routine, this); var yielding = coroutine.Start(); // todo need to check whether this coroutine invoke a timer // record in coroutinesDict if (yielding) { // alloc a id, and record } return(coroutine); }
public Coroutine StartCoroutine(IEnumerator routine) { //LogUtils.Debug("CoroutineManager.StartCoroutine"); if (disposed) { return null; } var coroutine = new Coroutine(routine, this); var yielding = coroutine.Start(); // todo need to check whether this coroutine invoke a timer // record in coroutinesDict if (yielding) { // alloc a id, and record } return coroutine; }