Esempio n. 1
0
    void LoadData()
    {
        ToggleController notScript = toggleNotification.GetComponent <ToggleController>();
        ToggleController vibScript = toggleVibration.GetComponent <ToggleController>();

        notScript._toggle.isOn = new LoadData().GetBool("Notification");
        vibScript._toggle.isOn = new LoadData().GetBool("Vibration");
        notScript.Toggle();
        vibScript.Toggle();
        sliderEffects.GetComponent <Slider>().value = gameManagerScript.effectsVolume;
        sliderMusic.GetComponent <Slider>().value   = gameManagerScript.musicVolume;
    }