We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 088e4ab commit ed1f4deCopy full SHA for ed1f4de
TheOneScripting/UiScriptPause.cs
@@ -140,14 +140,7 @@ public override void Update()
140
if ((Input.GetControllerButton(Input.ControllerButtonCode.X) || Input.GetKeyboardButton(Input.KeyboardCode.RETURN)) && canvas.GetSelectedButton() == 4)
141
{
142
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
+ playerGO.source.Play(IAudioSource.AudioEvent.STOPMUSIC);
151
152
SceneManager.LoadScene("MainMenu");
153
}
0 commit comments