Пример #1
0
 /// <summary>
 /// 销毁自身。
 /// </summary>
 public void Destroy()
 {
     TimerManager.Destroy(this);
 }
Пример #2
0
 /// <summary>
 /// 创建一个新的计时器。
 /// </summary>
 /// <param name="time">计时时长。</param>
 /// <param name="callback">回调函数。</param>
 /// <returns>计时器实例。</returns>
 public static Timer Create(float time, Action callback)
 {
     return(TimerManager.Create(time, callback));
 }
Пример #3
0
 public void ResumeTimers()
 {
     // 还剩 0.4 s
     TimerManager.Resume();
 }
Пример #4
0
 public void ClearTimers()
 {
     TimerManager.Clear();
 }
Пример #5
0
 public void PauseTimers()
 {
     TimerManager.Pause();
 }