GameFramework.EntityManager.RemoveEntity C# (CSharp) Method

RemoveEntity() public method

public RemoveEntity ( int id ) : void
id int
return void
        public void RemoveEntity(int id)
        {
            EntityInfo entity = GetEntityInfo(id);
            if (null != entity) {
                m_Entities.Remove(id);
                entity.SceneContext = m_SceneContext;
                RecycleEntityInfo(entity);
            }
        }

Usage Example

示例#1
0
 static public int RemoveEntity(IntPtr l)
 {
     try {
         GameFramework.EntityManager self = (GameFramework.EntityManager)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.RemoveEntity(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of GameFramework.EntityManager::RemoveEntity