diff --git a/TheOneScripting/UiScriptPause.cs b/TheOneScripting/UiScriptPause.cs index 6820cb73..e026cb86 100644 --- a/TheOneScripting/UiScriptPause.cs +++ b/TheOneScripting/UiScriptPause.cs @@ -140,14 +140,7 @@ public override void Update() if ((Input.GetControllerButton(Input.ControllerButtonCode.X) || Input.GetKeyboardButton(Input.KeyboardCode.RETURN)) && canvas.GetSelectedButton() == 4) { attachedGameObject.source.Play(IAudioSource.AudioEvent.UI_CLICK); - //if (playerGO.source.currentID == IAudioSource.AudioEvent.A_COMBAT_1) - //{ - // playerGO.source.Stop(IAudioSource.AudioEvent.A_COMBAT_1); - //} - //if (playerGO.source.currentID == IAudioSource.Events.A_AMBIENT_1) - //{ - // playerGO.source.Stop(IAudioSource.Events.A_AMBIENT_1); - //} + playerGO.source.Play(IAudioSource.AudioEvent.STOPMUSIC); SceneManager.LoadScene("MainMenu"); }