yyl
3 天以前 1ffebec3376d225a8b791f27594e51d3237f9b85
Main/System/SystemSetting/SystemSetting.cs
@@ -13,6 +13,8 @@
    const string QUALITY_LEVEL_KEY = "GameQualityLevel";
    const string SOUND_VOLUME_KEY = "MusicKey";  //音乐
    const string SOUND_EFFECT_KEY = "SoundEffectKey"; //音效
    const string MUTE_MUSIC_KEY = "MuteMusicKey"; //静音音乐
    const string MUTE_SOUND_EFFECT_KEY = "MuteSoundEffectKey"; //静音音效
    const string GAMEFRAME_KEY = "GameFrameSetting";//垂直同步率
    public Dictionary<SystemSwitch, bool> systemSettings = new Dictionary<SystemSwitch, bool>();
@@ -56,6 +58,26 @@
        return LocalSave.GetFloat(SOUND_EFFECT_KEY, 0.6f);
    }
    public void SetMuteMusic(bool _mute)
    {
        LocalSave.SetBool(MUTE_MUSIC_KEY, _mute);
    }
    public bool GetMuteMusic()
    {
        return LocalSave.GetBool(MUTE_MUSIC_KEY, false);
    }
    public void SetMuteSoundEffect(bool _mute)
    {
        LocalSave.SetBool(MUTE_SOUND_EFFECT_KEY, _mute);
    }
    public bool GetMuteSoundEffect()
    {
        return LocalSave.GetBool(MUTE_SOUND_EFFECT_KEY, false);
    }
    public void SetGameFps(GameFps _frame)
    {
        LocalSave.SetInt(GAMEFRAME_KEY, (int)_frame);