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
+4 -1
View File
@@ -37,6 +37,7 @@ public class MainMenuController : MonoBehaviour
public void PlaySelect()
{
AudioManager.Instance.PlaySound("Select");
if (GlobalStateManager.Instance.HighestLevel >= GlobalStateManager.Instance.levels.Count)
{
//handle edge case of completing all the levels
@@ -48,11 +49,13 @@ public class MainMenuController : MonoBehaviour
public void LevelSelect()
{
AudioManager.Instance.PlaySound("WordAdd");
InstantiateLevelButtons();
}
public void BackSelect()
{
AudioManager.Instance.PlaySound("WordRemove");
InitMenu.SetActive(true);
LevelSelectMenu.SetActive(false);
}
@@ -78,7 +81,7 @@ public class MainMenuController : MonoBehaviour
if (i <= GlobalStateManager.Instance.HighestLevel)
{
levelButton.GetComponentInChildren<Button>().onClick.AddListener(() => {
AudioManager.Instance.PlaySound("Select");
GlobalStateManager.Instance.LoadSpecificLevel(levelIndex);
});
}