Ejemplo n.º 1
0
 public Timer_Logic(TimerCall callBack, float waitTime, Component mo)
 {
     mWaitTime = waitTime;
     mCallBack = callBack;
     SetNextTime(waitTime);
     SetBody(mo);
 }
Ejemplo n.º 2
0
 }                                 //结果
 public Timer_CYield(IEnumerator tor, TimerCall FinishedEvent, Component mo = null)
 {
     mInitTor     = tor;
     mTor         = tor;
     mFinishEvent = FinishedEvent;
     SetNextTime(0);
     SetBody(mo);
 }
Ejemplo n.º 3
0
 public Timer_Frequency(TimerCall callBack, int Fre, Component mo, string tagName = null)
 {
     mDelayValue   = Fre;
     mDelayFrequen = Fre;
     mCallBack     = callBack;
     SetNextTime(0);
     SetBody(mo, tagName);
     isFun = false;
 }
Ejemplo n.º 4
0
 public static Timer_Frequency SetTimer(TimerCall fun, int fre, Component mo = null)
 {
     return(TimerController.SetTimer(new Timer_Frequency(fun, fre, mo)));
 }
Ejemplo n.º 5
0
 public static Timer_Logic SetTimer(TimerCall fun, float waitTime, Component mo)
 {
     return(TimerController.SetTimer(new Timer_Logic(fun, waitTime, mo)));
 }
Ejemplo n.º 6
0
 public static Timer_Coroutine SetTimer(IEnumerator tor, TimerCall FinishedEvent = null, Component mo = null)
 {
     return(TimerController.SetYieldTimer(new Timer_Coroutine(tor, FinishedEvent, mo)));
 }
Ejemplo n.º 7
0
 public void _SetEndCallBack(TimerCall end)
 {
     mEndCallBack += end;
 }
Ejemplo n.º 8
0
 public Timer_Coroutine(IEnumerator tor, TimerCall FinishedEvent, Component mo = null)
 {
     mTor         = tor;
     mFinishEvent = FinishedEvent;
     SetBody(mo);
 }
Ejemplo n.º 9
0
 public void SetFinishedEvent(TimerCall FinishedEvent)
 {
     mFinishEvent = FinishedEvent;
 }