protected override void Execute(List <InputEntity> entities)
    {
        foreach (var e in entities)
        {
            var pauseMenu = _menuManager.GetMenuByType(MenuType.Pause);

            pauseMenu.Show();

            _gameContext.isPause = true;

            _menuManager.GetMenuByType <PauseMenu>(MenuType.Pause).SetSave(true);
        }
    }
    protected override void Execute(List <InputEntity> entities)
    {
        foreach (var e in entities)
        {
            var gameMenu = _menuManager.GetMenuByType(MenuType.Game);
            var mainMenu = _menuManager.GetMenuByType(MenuType.Main);

            mainMenu.Hide();
            gameMenu.Show();

            _gameContext.CreateEntity().isCreatePlanet = true;
        }
    }
    protected override void Execute(List <InputEntity> entities)
    {
        foreach (var e in entities)
        {
            var pauseMenu = _menuManager.GetMenuByType(MenuType.Pause);

            pauseMenu.Hide();

            _gameContext.isPause = false;
        }
    }
Beispiel #4
0
    public void Initialize()
    {
        var menu = _menuManager.GetMenuByType(MenuType.Main);

        menu.Show();
    }