public CoroutineWrapper StartWrapper(IEnumerator rIEnum) { var rCourtineObj = UtilTool.CreateGameObject(this.mCoroutineRootObj, "coroutine"); CoroutineHandler rHandler = rCourtineObj.ReceiveComponent <CoroutineHandler>(); return(rHandler.StartHandler(rIEnum)); }
public void Stop(CoroutineHandler rCoroutineHandler) { if (rCoroutineHandler != null) { rCoroutineHandler.StopAllCoroutines(); GameObject.DestroyImmediate(rCoroutineHandler.gameObject); } rCoroutineHandler.Coroutine = null; rCoroutineHandler = null; }
public CoroutineRequest <T> Start(IEnumerator rIEnum) { this.Handler = CoroutineManager.Instance.StartHandler(rIEnum); return(this); }