public static Entity CreateEntityAndAppend(this EntityManager manager, EntityArchetype archetype) { var entity = manager.CreateEntity(); manager.AddComponents(entity, archetype.ToComponentTypes()); return(entity); }
public static void AppendArchetype(this EntityManager manager, Entity entity, EntityArchetype archetype) { manager.AddComponents(entity, archetype.ToComponentTypes()); }