public void RemoveEntity(CEntity entity) { foreach (var phase in m_phases) { phase.OnRemoveEntity(entity); } m_entityDict.Remove(entity.BaseId); entity.Destroy(); //entity.rest() to pool }
public void Destroy() { Entity.Destroy(); Entity = null; }