From ad72266f220f7a0beec0a161bd77d89c12863aa8 Mon Sep 17 00:00:00 2001 From: Andrew Faulkner Date: Thu, 9 Aug 2018 17:05:29 +1000 Subject: [PATCH] 1.2 --- README.md | 3 ++- RandomSong/RandomSongManager.cs | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c72a05e..4fac8f9 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ If the Random button is disabled, you have no songs in the current shown list th # Changes 1.2 Added Autoplay option - +Fixed No Fail and No Obstacles + 1.1 Added min and max difficulty range Added exclude standard songs option diff --git a/RandomSong/RandomSongManager.cs b/RandomSong/RandomSongManager.cs index 4bc0fba..1a6bc08 100644 --- a/RandomSong/RandomSongManager.cs +++ b/RandomSong/RandomSongManager.cs @@ -222,11 +222,19 @@ private void Update() } } - if (Input.GetKeyDown(KeyCode.JoystickButton0)&& Input.GetKeyDown(KeyCode.JoystickButton2)) + if (Input.GetKeyDown(KeyCode.C)) { - StartCoroutine(TestRandomSong()); + if (randomButton.interactable) + { + PlayRandomSong(); + } } + //if (Input.GetKeyDown(KeyCode.JoystickButton0)&& Input.GetKeyDown(KeyCode.JoystickButton2)) + //{ + // StartCoroutine(TestRandomSong()); + //} + //if (Input.GetKeyDown((KeyCode)ConInput.Vive.RightTrackpadPress)) //{ // LogComponents(mainSettingsMenu.transform, "="); @@ -350,6 +358,13 @@ IEnumerator SelectAndLoadSong(IStandardLevel level) if (autoPlay) { detailViewController.PlayButtonPressed(); + + if (gameplayMode.IsSolo() && !gameplayOptions.validForScoreUse) + { + var prompt = flowController.GetPrivateField("_simpleDialogPromptViewController"); + yield return new WaitForSeconds(0.1f); + flowController.HandleSimpleDialogPromptViewControllerDidFinish(prompt, true); + } } }