Esempio n. 1
0
    public void ChangeSettingsSliderValue(string sliderName, string textValueName, ref int permanentValueHolder)
    {
        Slider slider = objects[sliderName].GetComponent <Slider>();

        objects[textValueName].GetComponent <Text>().text = slider.value.ToString();
        permanentValueHolder = (int)slider.value;
        SharedDataHandler.UpdateGlobalSoundValues(textValueName, slider.value / 100);
        UpdateSoundValues(sliderName, slider.value / 100);
    }
Esempio n. 2
0
 void Start()
 {
     SharedDataHandler.UpdateGlobalSoundValues(SC_MenuModel.SFX_VALUE_VAR_NAME, .3f);
     SharedDataHandler.UpdateGlobalSoundValues(SC_MenuModel.BG_MUSIC_VALUE_VAR_NAME, .3f);
     Init();
 }