예제 #1
0
        public static Entity CreateEntityAndAppend(this EntityManager manager, EntityArchetype archetype)
        {
            var entity = manager.CreateEntity();

            manager.AddComponents(entity, archetype.ToComponentTypes());
            return(entity);
        }
예제 #2
0
 public static void AppendArchetype(this EntityManager manager, Entity entity, EntityArchetype archetype)
 {
     manager.AddComponents(entity, archetype.ToComponentTypes());
 }