Exemplo n.º 1
0
 private float PlayFun(Timer_Logic logic)
 {
     if (mProgressTimers.Count < mMaxUse)
     {
         if (mTimers.Count > 0)
         {
             var timer = mTimers[0];
             mTimers.Remove(timer);
             mProgressTimers.Add(timer);
             timer._SetEndCallBack(FinishEvent);
             TimerController.SetYieldTimer(timer);
         }
         else if (mProgressTimers.Count == 0)
         {
             IsOver = true;
             return(-1);
         }
     }
     return(0);
 }
Exemplo n.º 2
0
 public static Timer_Coroutine SetTimer(IEnumerator tor, TimerCall FinishedEvent = null, Component mo = null)
 {
     return(TimerController.SetYieldTimer(new Timer_Coroutine(tor, FinishedEvent, mo)));
 }
Exemplo n.º 3
0
 public Timer_Coroutine RegYield(Timer_Coroutine timer)
 {
     TimerController.SetYieldTimer(timer);
     mYieldEvent[timer.handle] = timer;
     return(timer);
 }