public Timer(TimerController c, Func <float> gen, bool repeat, UpdataHandle update, RunEventHandle run) : this(c, gen(), repeat) { intervalTimeGenFunc = gen; updataFun = update; runFun = run; }
/// <summary> /// 不要直接使用本方法生成计时器,请用TimerController.newTimer /// </summary> /// <param name="c"></param> /// <param name="interval"></param> /// <param name="repeat"></param> /// <param name="update"></param> /// <param name="run"></param> public Timer(TimerController c, float interval, bool repeat, UpdataHandle update, RunEventHandle run) : this(c, interval, repeat) { updataFun = update; runFun = run; }