/// <summary>Removes the specified entity.</summary> /// <param name="entity">The entity.</param> protected void Remove(Entity entity) { Debug.Assert(entity != null, "Entity must not be null."); entity.RemoveSystemBit(this.Bit); if (entity.IsEnabled) { this.Disable(entity); } this.OnRemoved(entity); }
/// <summary>Removes the specified entity.</summary> /// <param name="entity">The entity.</param> protected void Remove(Entity entity) { Debug.Assert(entity != null, "Entity must not be null."); entity.RemoveSystemBit(this.SystemBit); if (entity.IsEnabled) { this.Disable(entity); } this.OnRemoved(entity); }
protected void Remove(Entity e) { System.Diagnostics.Debug.Assert(e != null); e.RemoveSystemBit(systemBit); if (e.Enabled == true) { Disable(e); } OnRemoved(e); }
private void Remove(Entity e) { actives.Remove(e.GetId()); e.RemoveSystemBit(systemBit); Removed(e); }
private void Remove(Entity entity) { _activeEntities.Remove(entity.Id); entity.RemoveSystemBit(SystemBit); Removed(entity); }
protected void Remove(Entity e) { e.RemoveSystemBit(systemBit); if (e.Enabled == true) { Disable(e); } Removed(e); }
private void Remove(Entity entity) { Assert.True(_entities.Contains(entity) && entity.SystemMask.HasBits(this.SystemBit)); _entities.Remove(entity); entity.RemoveSystemBit(this.SystemBit); this.OnEntityRemoved(entity); }