protected override void OnUpdate() { CityPrefab cityPrefab = GetSingleton <CityPrefab>(); var ecb = barrier.CreateCommandBuffer(); var archetype = UICityLabel.GetCreateArchetype(); Entities .WithoutBurst() .ForEach(( Entity entity, int entityInQueryIndex, in SettlerTag settlerTag, in CommandCreateCity cmdCreateCity, in HexCoordinates hexCoordinates ) => { Entity city = CityEntity.Create(ecb, cityPrefab, entity); UICityLabel.Create(ecb, archetype, hexCoordinates); }