/// <summary> /// Usuwa encję. /// </summary> /// <param name="entity">Encja do usunięcia.</param> public bool Remove(IGameEntity entity) { if (entity == null) { throw new ArgumentNullException("entity"); } var deleted = this.Entities.Remove(entity); if (deleted) { Logger.Trace("Entity {0} removed from manager", entity.Id); } entity.OnDeinit(); return deleted; }