public void CreateCity()
        {
            EntityManager entityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
            Entity        entity        = Settler.GetSelected(entityManager);

            SettlerActions.AddCommandCreateCity(entity);
            UISettlerPanel.Hide();
        }
        protected override void OnUpdate()
        {
            EntityCommandBuffer ecb       = barrier.CreateCommandBuffer();
            EntityArchetype     archetype = UISettlerPanel.GetArchetype();

            Entities
            .WithoutBurst()
            .ForEach((
                         Entity entity,
                         in CommandSelectUnit commandSelectUnit,
                         in HexCoordinates hexCoordinates
                         ) => {
                Entity selectedCell = HexCellService.FindBy(hexCoordinates);
                ecb.AddComponent <Selected>(commandSelectUnit.entity, new Selected {
                });

                UISettlerPanel.Show(ecb, archetype, hexCoordinates);

                ecb.DestroyEntity(entity);
            }).Run();
 public void BackButton()
 {
     UISettlerPanel.Hide();
 }