private void InputNewGameMenu(IInput input) { bool isOptionChanged = false; if (input.Triggered.Cancel) { _animMenuBg.End(); _animMenuWindow.End(); _animMenuTitle.End(); _animMenuOption1.End(); _animMenuOption2.End(); _animMenuOption3.End(); _animMenuOption4.End(); _animMenuOptionSelected.End(); _stateToSet = MainMenuState.Running; } else if (input.Triggered.Confirm) { _animMenuBg.End(); _animMenuWindow.End(); _animMenuTitle.End(); _animMenuOption1.End(); _animMenuOption2.End(); _animMenuOption3.End(); _animMenuOption4.End(); _animMenuOptionSelected.End(); _stateToSet = MainMenuState.StartNewGame; } else if (input.Repeated.Up) { _difficultyOption--; if (_difficultyOption < 0) { _difficultyOption = _difficultyCount - 1; } isOptionChanged = true; } else if (input.Repeated.Down) { _difficultyOption = (_difficultyOption + 1) % _difficultyCount; isOptionChanged = true; } if (isOptionChanged) { _animMenuWindow.Skip(); _animMenuOption1.Skip(); _animMenuOption2.Skip(); _animMenuOption3.Skip(); _animMenuOption4.Skip(); _animMenuOptionSelected.Skip(); } }
private void InputNewGameMenu(InputManager inputManager) { bool isOptionChanged = false; if (inputManager.IsCross) { _animMenuBg.End(); _animMenuWindow.End(); _animMenuTitle.End(); _animMenuOption1.End(); _animMenuOption2.End(); _animMenuOption3.End(); _animMenuOption4.End(); _animMenuOptionSelected.End(); _stateToSet = MainMenuState.Running; } else if (inputManager.IsCircle) { _animMenuBg.End(); _animMenuWindow.End(); _animMenuTitle.End(); _animMenuOption1.End(); _animMenuOption2.End(); _animMenuOption3.End(); _animMenuOption4.End(); _animMenuOptionSelected.End(); _stateToSet = MainMenuState.StartNewGame; } else if (inputManager.IsMenuUp) { _difficultyOption--; if (_difficultyOption < 0) { _difficultyOption = _difficultyCount - 1; } isOptionChanged = true; } else if (inputManager.IsMenuDown) { _difficultyOption = (_difficultyOption + 1) % _difficultyCount; isOptionChanged = true; } if (isOptionChanged) { _animMenuWindow.Skip(); _animMenuOption1.Skip(); _animMenuOption2.Skip(); _animMenuOption3.Skip(); _animMenuOption4.Skip(); _animMenuOptionSelected.Skip(); } }