public void OptionsPausePressed() { optionMenu.enabled = true; Slider[] sliderOptions = optionMenu.GetComponentsInChildren <Slider>(false); sliderOptions[0].value = ConfigOptions.LoadSFX(); sliderOptions[1].value = ConfigOptions.LoadMusic(); }
public void OptionsPressed() { optionMenu.enabled = true; startText.interactable = false; exitText.interactable = false; optionText.interactable = false; Slider[] sliderOptions = optionMenu.GetComponentsInChildren <Slider>(false); sliderOptions[0].value = ConfigOptions.LoadSFX(); sliderOptions[1].value = ConfigOptions.LoadMusic(); }