public MainMenuScene() : base() { LogCat.updateValue("Scene", "MainMenu"); currentState = state.fade; currentMainSelect = mainSelect.skirmish; currentSkirmishSelect = skirmishSelect.engagement; currentExtrasSelect = extrasSelect.credits; }
private void UpdateSkirmish(float deltaTime) { foreach (Player player in Space394Game.GameInstance.Controllers) { if (InputManager.isCombinedDownCombinedStickPressed(player.PlayerNumber)) { switch (currentSkirmishSelect) { case skirmishSelect.engagement: currentSkirmishSelect = skirmishSelect.contention; break; case skirmishSelect.contention: currentSkirmishSelect = skirmishSelect.dissidence; break; case skirmishSelect.dissidence: currentSkirmishSelect = skirmishSelect.engagement; break; } } else if (InputManager.isCombinedUpCombinedStickPressed(player.PlayerNumber)) { switch (currentSkirmishSelect) { case skirmishSelect.engagement: currentSkirmishSelect = skirmishSelect.dissidence; break; case skirmishSelect.contention: currentSkirmishSelect = skirmishSelect.engagement; break; case skirmishSelect.dissidence: currentSkirmishSelect = skirmishSelect.contention; break; } } else { } } if (InputManager.isConfirmationKeyPressed() || InputManager.isSuperConfirmationKeyPressed()) { switch (currentSkirmishSelect) { case skirmishSelect.engagement: LoadingScene.MapToLoad = "SampleSmall"; break; case skirmishSelect.contention: LoadingScene.MapToLoad = "SampleMedium"; break; case skirmishSelect.dissidence: LoadingScene.MapToLoad = "Sample"; break; default: // Just in case LoadingScene.MapToLoad = "SampleSmall"; break; } nextScene = Space394Game.sceneEnum.PlayerSelectScene; readyToExit = true; foreach (Player player in Space394Game.GameInstance.Controllers) { player.nextState(); } } else if (InputManager.isUnconfirmationKeyPressed()) { currentState = state.main; currentSkirmishSelect = skirmishSelect.engagement; } else { } }