public CoroutineHandler StartHandler(IEnumerator rIEnum) { var rCourtineObj = CreateGameObject(this.mCoroutineRootObj, "coroutine"); CoroutineHandler rHandler = rCourtineObj.ReceiveComponent <CoroutineHandler>(); rHandler.SetCoroutineManager(this); rHandler.StartHandler(rIEnum); return(rHandler); }
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 = coroutine.StartHandler(rIEnum); return(this); }