gameswitch flash toggle (#387)

vfx boutta pop off
This commit is contained in:
Zeo
2023-04-07 10:15:19 -05:00
committed by GitHub
parent 507a64f623
commit fabca1b5e5
2 changed files with 13 additions and 6 deletions

View File

@ -657,19 +657,22 @@ namespace HeavenStudio
#endregion
public void SwitchGame(string game, float beat)
public void SwitchGame(string game, float beat, bool flash)
{
if (game != currentGame)
{
if (currentGameSwitchIE != null)
StopCoroutine(currentGameSwitchIE);
currentGameSwitchIE = StartCoroutine(SwitchGameIE(game, beat));
currentGameSwitchIE = StartCoroutine(SwitchGameIE(game, beat, flash));
}
}
IEnumerator SwitchGameIE(string game, float beat)
IEnumerator SwitchGameIE(string game, float beat, bool flash)
{
this.GetComponent<SpriteRenderer>().enabled = true;
if(flash == true)
{
this.GetComponent<SpriteRenderer>().enabled = true;
}
SetGame(game);