예제 #1
0
 public static void AddObjectUpdateable(IUpdateble objectUpdatable)
 {
     if (!allUpdatesObject.Contains(objectUpdatable))
     {
         allUpdatesObject.Add(objectUpdatable);
     }
 }
예제 #2
0
 public static void RemoveObjectUpdateable(IUpdateble objectUpdatable)
 {
     if (allUpdatesObject.Contains(objectUpdatable))
     {
         allUpdatesObject.Remove(objectUpdatable);
     }
 }
예제 #3
0
 public static void AddTo(IUpdateble add)
 {
     if (add is ITick)
     {
         Instance.OnUpdateTicked.Add(add as ITick);
     }
     if (add is IFixedTick)
     {
         Instance.OnFixedTicked.Add(add as IFixedTick);
     }
     if (add is ILateTick)
     {
         Instance.OnLateUpdateTicked.Add(add as ILateTick);
     }
 }
예제 #4
0
 public void RemoveFromUpdateble(IUpdateble item)
 {
     _updatebles.Remove(item);
 }
예제 #5
0
 public void AddToUpdateble(IUpdateble item)
 {
     _updatebles.Add(item);
 }
예제 #6
0
 public void AddToManager(IUpdateble updateble)
 {
     UpdateManager.AddTo(this);
 }
예제 #7
0
 public void RemoveApp()
 {
     _app    = null;
     _hasApp = false;
 }
예제 #8
0
 public void AddToApp(object up)
 {
     _app    = (IUpdateble)up;
     _hasApp = true;
 }
예제 #9
0
 public static void Unsubscribe(IUpdateble entity)
 {
     _removeQueue.Enqueue(entity);
 }
예제 #10
0
 public static void Subscribe(IUpdateble entity)
 {
     _addQueue.Enqueue(entity);
 }