started sound settings menu, still in progress
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
|
||||
public class PauseMenu : MonoBehaviour
|
||||
{
|
||||
public Button SettingsButton;
|
||||
public Button SaveButton;
|
||||
public Button DeleteSaveButton;
|
||||
public Button QuitButton;
|
||||
|
||||
public GameObject SettingsMenu;
|
||||
|
||||
public void ReloadReferences()
|
||||
{
|
||||
// pull all game objs here
|
||||
@@ -14,6 +17,7 @@ public void ReloadReferences()
|
||||
|
||||
void Start()
|
||||
{
|
||||
SettingsButton.onClick.AddListener(ShowSettings);
|
||||
SaveButton.onClick.AddListener(SaveSystem.Save);
|
||||
DeleteSaveButton.onClick.AddListener(SaveSystem.ClearSave);
|
||||
}
|
||||
@@ -22,4 +26,9 @@ void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ShowSettings()
|
||||
{
|
||||
SettingsMenu.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user