glee club fix
This commit is contained in:
parent
7cc669efae
commit
7b3e935961
|
|
@ -74,7 +74,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
|
||||||
anim.SetBool("Mega", true);
|
anim.SetBool("Mega", true);
|
||||||
anim.Play("OpenMouth", 0, 0);
|
anim.Play("OpenMouth", 0, 0);
|
||||||
shouldMegaClose = true;
|
shouldMegaClose = true;
|
||||||
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
|
if (currentSound != null) currentSound.Stop();
|
||||||
SoundByte.PlayOneShotGame("gleeClub/LoudWailStart");
|
SoundByte.PlayOneShotGame("gleeClub/LoudWailStart");
|
||||||
currentSound = SoundByte.PlayOneShotGame("gleeClub/LoudWailLoop", -1, currentPitch, 1f, true);
|
currentSound = SoundByte.PlayOneShotGame("gleeClub/LoudWailLoop", -1, currentPitch, 1f, true);
|
||||||
BeatAction.New(game, new List<BeatAction.Action>()
|
BeatAction.New(game, new List<BeatAction.Action>()
|
||||||
|
|
@ -95,7 +95,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
|
||||||
anim.SetBool("Mega", false);
|
anim.SetBool("Mega", false);
|
||||||
shouldMegaClose = false;
|
shouldMegaClose = false;
|
||||||
anim.Play("OpenMouth", 0, 0);
|
anim.Play("OpenMouth", 0, 0);
|
||||||
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
|
if (currentSound != null) currentSound.Stop();
|
||||||
currentSound = SoundByte.PlayOneShotGame("gleeClub/WailLoop", -1, currentPitch, 1f, true);
|
currentSound = SoundByte.PlayOneShotGame("gleeClub/WailLoop", -1, currentPitch, 1f, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ namespace HeavenStudio.Games.Scripts_GleeClub
|
||||||
if (!singing || disappeared) return;
|
if (!singing || disappeared) return;
|
||||||
singing = false;
|
singing = false;
|
||||||
anim.Play(mega ? "MegaCloseMouth" : "CloseMouth", 0, 0);
|
anim.Play(mega ? "MegaCloseMouth" : "CloseMouth", 0, 0);
|
||||||
if (currentSound != null) SoundByte.KillLoop(currentSound, 0f);
|
if (currentSound != null) currentSound.Stop();
|
||||||
if (playSound) SoundByte.PlayOneShotGame("gleeClub/StopWail");
|
if (playSound) SoundByte.PlayOneShotGame("gleeClub/StopWail");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue