Add music throughout. Start work on the prediction side pannels

This commit is contained in:
WillJeynes
2026-08-27 18:43:49 +01:00
parent 2ccfb29399
commit abe7a12244
12 changed files with 2194 additions and 136 deletions
+6
View File
@@ -7,6 +7,11 @@ public class PauseController : MonoBehaviour
public void TogglePause(bool on)
{
if (GlobalStateManager.Instance != null)
{
AudioManager.Instance.PlaySound("Select");
}
pauseMenu.SetActive(on);
Time.timeScale = on ? 0 : 1;
}
@@ -16,6 +21,7 @@ public class PauseController : MonoBehaviour
TogglePause(false);
if (GlobalStateManager.Instance != null)
{
AudioManager.Instance.PlaySound("Select");
GlobalStateManager.Instance.MenuIntended = intended;
}