private void OnComponentRemoved(IEntity entity, Type component) { _families.Lock(); foreach (var pair in _families) { pair.ComponentRemoved(entity, component); } _families.UnLock(); }
public void AfterAddingWhileLocked_IsContained() { var type = typeof(Node <SpriteRenderer>); var family = Substitute.For <IFamily>(); _container.Lock(); _container.Add(type, family); Assert.IsTrue(_container.Contains(type)); }