Add music throughout. Start work on the prediction side pannels
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user