public void RemoveCop <T>() where T : ICop { Type type = typeof(T); if (m_Cops.TryGetValue(type, out ICop cop)) { m_Cops.Remove(type); cop.OnRemove(); } }
public Entity GetEntity(uint entityId) { if (m_Entities.TryGetValue(entityId, out Entity entity)) { if (!entity.IsDispose) { return(entity); } } return(null); }