Exemple #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);
        }
Exemple #2
0
 public void Stop(CoroutineHandler rCoroutineHandler)
 {
     if (rCoroutineHandler != null)
     {
         rCoroutineHandler.StopAllCoroutines();
         GameObject.DestroyImmediate(rCoroutineHandler.gameObject);
         rCoroutineHandler.Coroutine = null;
     }
     rCoroutineHandler = null;
 }
Exemple #3
0
 public CoroutineRequest <T> Start(IEnumerator rIEnum)
 {
     this.Handler = coroutine.StartHandler(rIEnum);
     return(this);
 }