コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        switch (estado)
        {
        case EstadosDoSwitch.menuSuspenso:
            languageMenu.MudarOpcao();

            if (command.DisparaAcao())
            {
                OpcaoEscolhida(languageMenu.OpcaoEscolhida);
                estado = EstadosDoSwitch.emEspera;
            }
            break;
        }
    }
コード例 #2
0
    // Update is called once per frame
    public void Update()
    {
        switch (estado)
        {
        case EstadosDoSwitch.menuSuspenso:
            languageMenu.MudarOpcao();

            if (ActionManager.ButtonUp(0, GlobalController.g.Control))
            {
                EventAgregator.Publish(EventKey.positiveUiInput, null);

                OpcaoEscolhida(languageMenu.OpcaoEscolhida);
                estado = EstadosDoSwitch.emEspera;
            }
            break;
        }
    }