/// <summary> /// 暂停用户指定的计时触发器 /// </summary> /// <param name="timer">指定的定时器</param> public static void Pause(Timer timer) { if (Exist(timer)) { timer.Pause(); } else { if (showLog) { Debug.Log("【TimerTrigger(容错)】:此定时器已完成触发或无此定时器!"); } } }
/// <summary> /// 暂停用户指定的计时触发器 /// </summary> /// <param name="flag">指定的标识符</param> public static void Pause(string flag) { Timer timer = GetTimer(flag); if (null != timer) { timer.Pause(); } else { if (showLog) { Debug.Log("【TimerTrigger(容错)】:定时器已完成触发或无此定时器!---Flag【" + flag + "】。"); } } }