Esempio n. 1
0
        public long NewOnceTimer(long tillTime, Action <bool> action)
        {
            OnceTimer timer = TimerFactory.Create <OnceTimer, Action <bool> >(action);

            this.timers[timer.InstanceId] = timer;
            AddToTimeId(tillTime, timer.InstanceId);
            return(timer.InstanceId);
        }
Esempio n. 2
0
        public long NewOnceTimer(long tillTime, Action action)
        {
            OnceTimer timer = EntityFactory.CreateWithParent <OnceTimer, Action>(this, action);

            this.timers[timer.Id] = timer;
            AddToTimeId(tillTime, timer.Id);
            return(timer.Id);
        }
Esempio n. 3
0
 public override void Awake(OnceTimer self, Action <bool> callback)
 {
     self.Callback = callback;
 }