public static void AddObjectUpdateable(IUpdateble objectUpdatable) { if (!allUpdatesObject.Contains(objectUpdatable)) { allUpdatesObject.Add(objectUpdatable); } }
public static void RemoveObjectUpdateable(IUpdateble objectUpdatable) { if (allUpdatesObject.Contains(objectUpdatable)) { allUpdatesObject.Remove(objectUpdatable); } }
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); } }
public void RemoveFromUpdateble(IUpdateble item) { _updatebles.Remove(item); }
public void AddToUpdateble(IUpdateble item) { _updatebles.Add(item); }
public void AddToManager(IUpdateble updateble) { UpdateManager.AddTo(this); }
public void RemoveApp() { _app = null; _hasApp = false; }
public void AddToApp(object up) { _app = (IUpdateble)up; _hasApp = true; }
public static void Unsubscribe(IUpdateble entity) { _removeQueue.Enqueue(entity); }
public static void Subscribe(IUpdateble entity) { _addQueue.Enqueue(entity); }