mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-24 00:50:59 +00:00
fix MusicManager PlayVictory and PlayDefeat Music
This commit is contained in:
parent
34b5b79d17
commit
19a58eef99
@ -55,6 +55,10 @@ public class MusicManager : MonoBehaviour
|
|||||||
|
|
||||||
public void PlayVictoryMusic()
|
public void PlayVictoryMusic()
|
||||||
{
|
{
|
||||||
|
if (MainMenu.isPlaying) MainMenu.Stop();
|
||||||
|
if (Defeat.isPlaying) Defeat.Stop();
|
||||||
|
if (Gameplay.isPlaying) Gameplay.Stop();
|
||||||
|
|
||||||
if (!Victory.isPlaying)
|
if (!Victory.isPlaying)
|
||||||
{
|
{
|
||||||
Victory.Play();
|
Victory.Play();
|
||||||
@ -62,6 +66,11 @@ public class MusicManager : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void PlayDefeatMusic() {
|
public void PlayDefeatMusic() {
|
||||||
|
if (MainMenu.isPlaying) MainMenu.Stop();
|
||||||
|
if (Victory.isPlaying) Victory.Stop();
|
||||||
|
if (Gameplay.isPlaying) Gameplay.Stop();
|
||||||
|
|
||||||
|
|
||||||
if (!Defeat.isPlaying) {
|
if (!Defeat.isPlaying) {
|
||||||
Defeat.Play();
|
Defeat.Play();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user