예제 #1
0
        public CoroutineHandler StartHandler(IEnumerator rIEnum)
        {
            var rCourtineObj          = CreateGameObject(this.mCoroutineRootObj, "coroutine");
            CoroutineHandler rHandler = rCourtineObj.ReceiveComponent <CoroutineHandler>();

            rHandler.SetCoroutineManager(this);
            rHandler.StartHandler(rIEnum);
            return(rHandler);
        }
예제 #2
0
 public void Stop(CoroutineHandler rCoroutineHandler)
 {
     if (rCoroutineHandler != null)
     {
         rCoroutineHandler.StopAllCoroutines();
         GameObject.DestroyImmediate(rCoroutineHandler.gameObject);
         rCoroutineHandler.Coroutine = null;
     }
     rCoroutineHandler = null;
 }
예제 #3
0
 public CoroutineRequest <T> Start(IEnumerator rIEnum)
 {
     this.Handler = coroutine.StartHandler(rIEnum);
     return(this);
 }