Example #1
0
    public void OptionsPausePressed()
    {
        optionMenu.enabled = true;

        Slider[] sliderOptions = optionMenu.GetComponentsInChildren <Slider>(false);

        sliderOptions[0].value = ConfigOptions.LoadSFX();
        sliderOptions[1].value = ConfigOptions.LoadMusic();
    }
Example #2
0
    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();
    }