internal void RemoveSystem(IExcuteSystem system) { if (_systems.Contains(system)) { _systems.Remove(system); } }
internal void AddSystem(IExcuteSystem system) { if (!_systems.Contains(system)) { _systems.Add(system); } }
internal void RemoveSystem(IExcuteSystem system) { using (new LockWait(ref _lock)) { if (_systems.Contains(system)) { _systems.Remove(system); } } }
internal void AddSystem(IExcuteSystem system) { using (new LockWait(ref _lock)) { if (!_systems.Contains(system)) { _systems.Add(system); } } }
/// <summary> /// 解除注册系统 /// </summary> /// <param name="system"></param> public void UnSubscribeSystem(IExcuteSystem system) { _systems.RemoveSystem(system); }
/// <summary> /// 注册系统 /// </summary> /// <param name="system"></param> public void SubscribeSystem(IExcuteSystem system) { _systems.AddSystem(system); }