Skip to content

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
taz030485 committed Aug 9, 2018
1 parent a614a80 commit ad72266
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 17 additions & 2 deletions RandomSong/RandomSongManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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, "=");
Expand Down Expand Up @@ -350,6 +358,13 @@ IEnumerator SelectAndLoadSong(IStandardLevel level)
if (autoPlay)
{
detailViewController.PlayButtonPressed();

if (gameplayMode.IsSolo() && !gameplayOptions.validForScoreUse)
{
var prompt = flowController.GetPrivateField<SimpleDialogPromptViewController>("_simpleDialogPromptViewController");
yield return new WaitForSeconds(0.1f);
flowController.HandleSimpleDialogPromptViewControllerDidFinish(prompt, true);
}
}
}

Expand Down

0 comments on commit ad72266

Please sign in to comment.