// Update is called once per frame void Update() { //if on android, tap will go to arcade game screen #if UNITY_ANDROID MobileInput.InputType input = MobileInput.getInput(); if (input == MobileInput.InputType.hold) { SceneManager.LoadScene("TitleScreen"); } else if (input == MobileInput.InputType.left) { SceneManager.LoadScene("RMTutorial"); } else if (input == MobileInput.InputType.up) { source.Stop(); rhythm_game.SetGameMode(Rhythm.GameMode.normal); rhythm_game.enabled = true; play_menu_prompt = false; this.enabled = false; } else if (input == MobileInput.InputType.right) { source.Stop(); rhythm_game.SetGameMode(Rhythm.GameMode.normal); rhythm_game.enabled = true; play_menu_prompt = false; this.enabled = false; } else if (input == MobileInput.InputType.down) { SceneManager.LoadScene("MinigameScreen"); } #endif if (Input.GetKeyDown("left")) //"Tutorial level", just for explaining gameplay { SceneManager.LoadScene("RMTutorial"); } else if (Input.GetKeyDown("up")) //Beginning mode { source.Stop(); rhythm_game.SetGameMode(Rhythm.GameMode.normal); rhythm_game.enabled = true; this.enabled = false; play_menu_prompt = false; } else if (Input.GetKeyDown("right")) //Intermediate { source.Stop(); rhythm_game.SetGameMode(Rhythm.GameMode.hard); rhythm_game.enabled = true; this.enabled = false; play_menu_prompt = false; } else if (Input.GetKeyDown("down")) { SceneManager.LoadScene("MinigameScreen"); } }