public Timer_Logic(TimerCall callBack, float waitTime, Component mo) { mWaitTime = waitTime; mCallBack = callBack; SetNextTime(waitTime); SetBody(mo); }
} //结果 public Timer_CYield(IEnumerator tor, TimerCall FinishedEvent, Component mo = null) { mInitTor = tor; mTor = tor; mFinishEvent = FinishedEvent; SetNextTime(0); SetBody(mo); }
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; }
public static Timer_Frequency SetTimer(TimerCall fun, int fre, Component mo = null) { return(TimerController.SetTimer(new Timer_Frequency(fun, fre, mo))); }
public static Timer_Logic SetTimer(TimerCall fun, float waitTime, Component mo) { return(TimerController.SetTimer(new Timer_Logic(fun, waitTime, mo))); }
public static Timer_Coroutine SetTimer(IEnumerator tor, TimerCall FinishedEvent = null, Component mo = null) { return(TimerController.SetYieldTimer(new Timer_Coroutine(tor, FinishedEvent, mo))); }
public void _SetEndCallBack(TimerCall end) { mEndCallBack += end; }
public Timer_Coroutine(IEnumerator tor, TimerCall FinishedEvent, Component mo = null) { mTor = tor; mFinishEvent = FinishedEvent; SetBody(mo); }
public void SetFinishedEvent(TimerCall FinishedEvent) { mFinishEvent = FinishedEvent; }