Skip to content

Commit ed1f4de

Browse files
committed
Stopped audio from level one when you go back to main menu
1 parent 088e4ab commit ed1f4de

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

TheOneScripting/UiScriptPause.cs

+1-8
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,7 @@ public override void Update()
140140
if ((Input.GetControllerButton(Input.ControllerButtonCode.X) || Input.GetKeyboardButton(Input.KeyboardCode.RETURN)) && canvas.GetSelectedButton() == 4)
141141
{
142142
attachedGameObject.source.Play(IAudioSource.AudioEvent.UI_CLICK);
143-
//if (playerGO.source.currentID == IAudioSource.AudioEvent.A_COMBAT_1)
144-
//{
145-
// playerGO.source.Stop(IAudioSource.AudioEvent.A_COMBAT_1);
146-
//}
147-
//if (playerGO.source.currentID == IAudioSource.Events.A_AMBIENT_1)
148-
//{
149-
// playerGO.source.Stop(IAudioSource.Events.A_AMBIENT_1);
150-
//}
143+
playerGO.source.Play(IAudioSource.AudioEvent.STOPMUSIC);
151144

152145
SceneManager.LoadScene("MainMenu");
153146
}

0 commit comments

Comments
 (0)