private void SelectHomeMenu() { if (InputController.UP_KEY_UP) { soundC.PlayMoveCursor(); gameMenu = uiC.UpdateHomeCursor(); } if (InputController.DOWN_KEY_UP) { soundC.PlayMoveCursor(); gameMenu = uiC.UpdateHomeCursor(); } if (InputController.SPACE_KEY_UP) { soundC.PlaySelect(); switch (gameMenu) { // Play case 1: scene = SCENE.Play; uiC.UpdateHomeUI(false); break; // Rule case 2: scene = SCENE.Rule; uiC.UpdateRulePanel(true); ruleC.NextPage(); break; default: break; } } }
private void SelectHomeMenu() { if (InputController.UP_KEY_UP) { soundC.PlayMoveCursor(); gameMenu = uiC.UpdateHomeCursor(); } if (InputController.DOWN_KEY_UP) { soundC.PlayMoveCursor(); gameMenu = uiC.UpdateHomeCursor(); } if (InputController.SPACE_KEY_UP && InputController.SHIFT && gameMenu == 1) { SceneManager.LoadScene("BeeHunter"); } if (InputController.SPACE_KEY_UP) { soundC.PlaySelect(); switch (gameMenu) { // Play case 1: scene = SCENE.SelectLevel; uiC.UpdateSelectLevelPanel(true); break; // Rule case 2: scene = SCENE.Rule; uiC.UpdateRulePanel(true); ruleC.NextPage(); break; default: break; } } }