Esempio n. 1
0
        public Timer AddDelayTimer(float delayTime, Action <object[]> callback, params object[] args)
        {
            Timer timer = new DelayTimer(delayTime, callback, args);

            _timers.Add(timer);
            return(timer);
        }
Esempio n. 2
0
        public Timer AddDelayTimer(float delayTime, Action callback)
        {
            Timer timer = new DelayTimer(delayTime, (objs) => callback(), null);

            _timers.Add(timer);
            return(timer);
        }