public static void RemoveManagedListener(IManagedFixedUpdate behaviour) { AssertSingletonExists(); Debug.Assert(behaviour != null, "[ManagedBehaviourEngine] behaviour is null"); fixedUpdateListeners.Remove(behaviour); }
public void UnregisterFixedUpdate(IManagedFixedUpdate managedFixedUpdate) { if (fixedUpdateList.Remove(managedFixedUpdate)) { isFixedUpdateListChanged = true; } }
public void RegisterFixedUpdate(IManagedFixedUpdate managedFixedUpdate) { if (managedFixedUpdate == null) { return; } fixedUpdateList.Add(managedFixedUpdate); isFixedUpdateListChanged = true; }
public static void AddManagedListener(IManagedFixedUpdate behaviour) { AssertSingletonExists(); Debug.Assert(!fixedUpdateListeners.Contains(behaviour), "[ManagedBehaviourEngine] Duplicate behaviour being subscribed!" + " Check your subscription logic, fool!"); Debug.Assert(behaviour != null, "[ManagedBehaviourEngine] behaviour is null"); fixedUpdateListeners.Add(behaviour); }