/// <summary> /// 销毁自身。 /// </summary> public void Destroy() { TimerManager.Destroy(this); }
/// <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)); }
public void ResumeTimers() { // 还剩 0.4 s TimerManager.Resume(); }
public void ClearTimers() { TimerManager.Clear(); }
public void PauseTimers() { TimerManager.Pause(); }