public static void InvokeRepeat(Action action, Action cancelAction, float delay) { MobaTimer timer = new MobaTimer(action, cancelAction, delay, true); TimerManager.AddTimer(timer); }
public static void AddTimer(MobaTimer timer) { timer.globalID = timerID; _timers.Add(timer.globalID, timer); timerID++; }