示例#1
0
        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();
            }
        }
示例#2
0
 public Entity GetEntity(uint entityId)
 {
     if (m_Entities.TryGetValue(entityId, out Entity entity))
     {
         if (!entity.IsDispose)
         {
             return(entity);
         }
     }
     return(null);
 }