// 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; } }
// 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; } }