Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public override void Awake(OnceTimer self, Action <bool> callback)
 {
     self.Callback = callback;
 }