コード例 #1
0
        public CoroutineWrapper StartWrapper(IEnumerator rIEnum)
        {
            var rCourtineObj          = UtilTool.CreateGameObject(this.mCoroutineRootObj, "coroutine");
            CoroutineHandler rHandler = rCourtineObj.ReceiveComponent <CoroutineHandler>();

            return(rHandler.StartHandler(rIEnum));
        }
コード例 #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 = CoroutineManager.Instance.StartHandler(rIEnum);
     return(this);
 }