Example #1
0
        public void Unsubscribe(object tickTarget)
        {
            ITickable tickable = tickTarget as ITickable;

            if (tickable != null)
            {
                tickables -= tickable.Tick;
            }
            IFixedTickable fixedTickable = tickTarget as IFixedTickable;

            if (fixedTickable != null)
            {
                fixedTickables -= fixedTickable.FixedTick;
            }
            ILateTickable lateTickable = tickTarget as ILateTickable;

            if (lateTickable != null)
            {
                lateTickables -= lateTickable.LateTick;
            }
        }
Example #2
0
 public void AddLate(ILateTickable tickable, int priority)
 {
     _lateUpdater.AddTask(tickable, priority);
 }
Example #3
0
 public void RemoveLate(ILateTickable tickable)
 {
     _lateUpdater.RemoveTask(tickable);
 }
Example #4
0
 public void AddLate(ILateTickable tickable)
 {
     AddLate(tickable, 0);
 }
Example #5
0
 public void AddLate(ILateTickable tickable, int priority)
 {
     _lateUpdater.AddTask(tickable, priority);
 }
Example #6
0
 internal void RemoveLate(ILateTickable tickable)
 {
     _lateTicked.Remove(tickable);
 }
 public void Add(ILateTickable component)
 {
     _addList.Add(component);
 }
Example #8
0
 internal void RemoveLate(ILateTickable tickable)
 {
     _lateTicked.Remove(tickable);
 }
Example #9
0
 public void AddLate(ILateTickable tickable)
 {
     _ticker.AddLate(tickable);
 }
Example #10
0
 public void RemoveLate(ILateTickable tickable)
 {
     _ticker.RemoveLate(tickable);
 }
Example #11
0
 void UpdateLateTickable(ILateTickable tickable)
 {
     #if PROFILING_ENABLED
     using (ProfileBlock.Start("{0}.LateTick()".Fmt(tickable.GetType().Name())))
     #endif
     {
         tickable.LateTick();
     }
 }
Example #12
0
 public void AddLate(ILateTickable tickable)
 {
     _lateUpdater.AddTask(tickable);
 }
Example #13
0
 void UpdateLateTickable(ILateTickable tickable)
 {
     using (ProfileBlock.Start("{0}.LateTick()".Fmt(tickable.GetType().Name())))
     {
         tickable.LateTick();
     }
 }
Example #14
0
 public void AddLate(ILateTickable tickable)
 {
     AddLate(tickable, 0);
 }
Example #15
0
 internal void AddLate(ILateTickable tickable)
 {
     _lateTicked.Add(tickable);
 }
Example #16
0
 public void RemoveLate(ILateTickable tickable)
 {
     _lateUpdater.RemoveTask(tickable);
 }
Example #17
0
 internal void AddLate(ILateTickable tickable)
 {
     _lateTicked.Add(tickable);
 }