TO SQUASH: Fixed pause not doing anything.

This commit is contained in:
2026-08-05 00:09:27 -04:00
parent f1a2229774
commit 2c7e02887c
+2
View File
@@ -39,10 +39,12 @@ public class Pause : MonoBehaviour
{ {
audioSource.PlayOneShot(pauseSound); audioSource.PlayOneShot(pauseSound);
musicManager.pauseMusic(); musicManager.pauseMusic();
Time.timeScale = 0.0f; // Pause the game
} }
else else
{ {
musicManager.resumeMusic(); musicManager.resumeMusic();
Time.timeScale = 1.0f; // Resume the game
} }
} }
} }