mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-25 19:15:16 +00:00
done (#541)
This commit is contained in:
parent
53bf359abf
commit
8c85e78a6d
1 changed files with 11 additions and 3 deletions
|
@ -763,7 +763,7 @@ namespace HeavenStudio
|
||||||
|
|
||||||
IEnumerator SwitchGameIE(string game, double beat, bool flash)
|
IEnumerator SwitchGameIE(string game, double beat, bool flash)
|
||||||
{
|
{
|
||||||
if(flash)
|
if (flash)
|
||||||
{
|
{
|
||||||
HeavenStudio.StaticCamera.instance.ToggleCanvasVisibility(false);
|
HeavenStudio.StaticCamera.instance.ToggleCanvasVisibility(false);
|
||||||
}
|
}
|
||||||
|
@ -774,8 +774,16 @@ namespace HeavenStudio
|
||||||
if (miniGame != null)
|
if (miniGame != null)
|
||||||
miniGame.OnGameSwitch(beat);
|
miniGame.OnGameSwitch(beat);
|
||||||
|
|
||||||
//before beat-based: yield return new WaitForSeconds(0.1f);
|
while(beat + 0.25 > Conductor.instance.songPositionInBeats)
|
||||||
yield return new WaitForSeconds(Conductor.instance.pitchedSecPerBeat / 4);
|
{
|
||||||
|
if (!Conductor.instance.isPlaying)
|
||||||
|
{
|
||||||
|
HeavenStudio.StaticCamera.instance.ToggleCanvasVisibility(true);
|
||||||
|
SetAmbientGlowToCurrentMinigameColor();
|
||||||
|
StopCoroutine(currentGameSwitchIE);
|
||||||
|
}
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
|
||||||
HeavenStudio.StaticCamera.instance.ToggleCanvasVisibility(true);
|
HeavenStudio.StaticCamera.instance.ToggleCanvasVisibility(true);
|
||||||
SetAmbientGlowToCurrentMinigameColor();
|
SetAmbientGlowToCurrentMinigameColor();
|
||||||
|
|
Loading…
Reference in a new issue