Пример #1
0
    public static void InvokeRepeat(Action action, Action cancelAction, float delay)
    {
        MobaTimer timer = new MobaTimer(action, cancelAction, delay, true);

        TimerManager.AddTimer(timer);
    }
Пример #2
0
 public static void AddTimer(MobaTimer timer)
 {
     timer.globalID = timerID;
     _timers.Add(timer.globalID, timer);
     timerID++;
 }