|
Eye of the Nile Docs
Everything you need to know to get started!
|
Handles opening the settings menu and the functionality of the buttons.
Documentation updated 4/12/2025
Public Member Functions | |
| void | CloseSettings () |
| void | OpenSettings () |
| void | OnMasterVolumeChanged () |
| void | OnMusicVolumeChanged () |
| void | OnSfxVolumeChanged () |
| void | SwitchTab (string newTab) |
Public Attributes | |
| GameObject | SettingsMenuUI |
| Get settings menu game object. This is set in the inspector in Unity. | |
| Slider | masterVolumeSlider |
| Get settings menu UI options game objects. These are set in the inspector in Unity. | |
| Slider | musicVolumeSlider |
| Slider | sfxVolumeSlider |
Static Public Attributes | |
| static bool | SettingsOpen = false |
Private Member Functions | |
| void | Awake () |
| Set reference to dataManager. | |
| void | Start () |
| Set the value of the settings options to the data manager's copy of it when scenes are loaded. | |
Private Attributes | |
| DataManager | dataManager |
| Reference to the data manager. All values from the settings menu should go to the DataManager so they can be saved between scenes! | |
|
private |
Set reference to dataManager.
| void SettingsMenu.CloseSettings | ( | ) |
| void SettingsMenu.OnMasterVolumeChanged | ( | ) |
| void SettingsMenu.OnMusicVolumeChanged | ( | ) |
| void SettingsMenu.OnSfxVolumeChanged | ( | ) |
| void SettingsMenu.OpenSettings | ( | ) |
|
private |
Set the value of the settings options to the data manager's copy of it when scenes are loaded.
| void SettingsMenu.SwitchTab | ( | string | newTab | ) |
|
private |
Reference to the data manager. All values from the settings menu should go to the DataManager so they can be saved between scenes!
| Slider SettingsMenu.masterVolumeSlider |
Get settings menu UI options game objects. These are set in the inspector in Unity.
| Slider SettingsMenu.musicVolumeSlider |
| GameObject SettingsMenu.SettingsMenuUI |
Get settings menu game object. This is set in the inspector in Unity.
|
static |
| Slider SettingsMenu.sfxVolumeSlider |