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