Ejemplo n.º 1
0
    void LoadPlayerOptions()
    {
        playerOptions = new PlayerOptions();
        playerOptions.showTooltips          = PlayerPrefs.GetInt("showTooltips", 1) == 1 ? true : false;
        playerOptions.invertMouselook       = PlayerPrefs.GetInt("invertMouselook", 0) == 1 ? true : false;
        playerOptions.autoPause             = PlayerPrefs.GetInt("autoPause", 0) == 1 ? true : false;
        playerOptions.hideAvatarInTopDown   = PlayerPrefs.GetInt("hideAvatarInTopDown", 0) == 1 ? true : false;
        playerOptions.sfxVolume             = PlayerPrefs.GetFloat("sfxVolume", DEFAULT_SFX_VOLUME);
        playerOptions.musicVolume           = PlayerPrefs.GetFloat("musicVolume", DEFAULT_MUSIC_VOLUME);
        playerOptions.mouseLookSensitivity  = PlayerPrefs.GetFloat("mouseLookSensitivity", DEFAULT_MOUSE_SENSITIVITY);
        playerOptions.mouseWheelSensitivity = PlayerPrefs.GetFloat("mouseWheelSensitivity", DEFAULT_MOUSEWHEEL_SENSITIVITY_WIN);

        systemMenu.GetGraphicsMenu().Setup();

        audioMixer.SetFloat("musicVolume", -80);
        audioMixer.SetFloat("sfxVolume", -80);
    }