예제 #1
0
 public Coroutine StartCoroutine(TCoroutine coroutine)
 {
     if (mContainer != null)
     {
         mContainer.Add(coroutine);
     }
     return(coroutine.Start());
 }
예제 #2
0
 public Coroutine StartCoroutine(out TCoroutine coroutine, IEnumerator enumerator, Action <bool> onFinished = null, Action onTimeup = null, int timer = 0)
 {
     coroutine = new TCoroutine(this, null, enumerator, onFinished, onTimeup, timer);
     if (mContainer != null)
     {
         mContainer.Add(coroutine);
     }
     return(coroutine.Start());
 }