diff --git a/Assets/Audio/Master.bank b/Assets/Audio/Master.bank index f6cce22f..2f87ff17 100644 Binary files a/Assets/Audio/Master.bank and b/Assets/Audio/Master.bank differ diff --git a/Assets/Audio/Master.strings.bank b/Assets/Audio/Master.strings.bank index 7f71c9b1..45623644 100644 Binary files a/Assets/Audio/Master.strings.bank and b/Assets/Audio/Master.strings.bank differ diff --git a/Assets/Audio/Music.bank b/Assets/Audio/Music.bank index 5d5708e6..beabe885 100644 Binary files a/Assets/Audio/Music.bank and b/Assets/Audio/Music.bank differ diff --git a/Assets/Audio/SFX.bank b/Assets/Audio/SFX.bank index 5826bbc7..e1a85b71 100644 Binary files a/Assets/Audio/SFX.bank and b/Assets/Audio/SFX.bank differ diff --git a/Assets/Audio/footsteps.bank b/Assets/Audio/footsteps.bank deleted file mode 100644 index ce53111e..00000000 Binary files a/Assets/Audio/footsteps.bank and /dev/null differ diff --git a/Assets/Scripts/Gameplay/Breakable.cs b/Assets/Scripts/Gameplay/Breakable.cs index 06f8a5e3..a7406499 100644 --- a/Assets/Scripts/Gameplay/Breakable.cs +++ b/Assets/Scripts/Gameplay/Breakable.cs @@ -59,6 +59,7 @@ public class Breakable : Script } isBreak = false; + Audio.PlaySFXOnce2D("event:/Props/impact_break"); Owner.SetActive(false); } } \ No newline at end of file diff --git a/Assets/Scripts/Gameplay/SC_GameManager.cs b/Assets/Scripts/Gameplay/SC_GameManager.cs index 0f54c33c..e2f1b45f 100644 --- a/Assets/Scripts/Gameplay/SC_GameManager.cs +++ b/Assets/Scripts/Gameplay/SC_GameManager.cs @@ -76,33 +76,25 @@ public class GameManager : Script if(timeText) timeText.GetComponent().Text = $"Time Left: {timer.ToString("0.00")}"; - if (timer > 0 && totalItemCount <= 0) + if ((timer > 0 && totalItemCount <= 0) || Input.GetKeyDown(Input.KeyCode.F1)) { currGameState = GameState.WIN; Audio.StopAllSounds(); SceneManager.ChangeScene(winScene); + Audio.PlaySFXOnce2D("event:/Music/stingers/game_win"); } - else if(timer < 0) + else if(timer < 0 || Input.GetKeyDown(Input.KeyCode.F2)) { currGameState = GameState.LOSE; Audio.StopAllSounds(); SceneManager.ChangeScene(loseScene); + Audio.PlaySFXOnce2D("event:/Music/stingers/game_lose"); } } } private void Cheats() { - if (Input.GetKeyDown(Input.KeyCode.F1)) - { - Audio.StopAllSounds(); - SceneManager.ChangeScene(loseScene); - } - if (Input.GetKeyDown(Input.KeyCode.F2)) - { - Audio.StopAllSounds(); - SceneManager.ChangeScene(winScene); - } if (Input.GetKeyDown(Input.KeyCode.Escape)) { Audio.StopAllSounds();