private bool LoadSoundEffectStatus() { return(PlayerPrefsUtil.HasKey(PlayerPrefsKey.SoundFxMuteKey) ? IntToBool(PlayerPrefsUtil.GetIntSimple(PlayerPrefsKey.SoundFxMuteKey)) : soundEffectOn); }
private float LoadSoundEffectVolume() { return(PlayerPrefsUtil.HasKey(PlayerPrefsKey.SoundFxVolKey) ? PlayerPrefsUtil.GetFloatSimple(PlayerPrefsKey.SoundFxVolKey) : soundEffectVolume); }
private bool LoadBackgroundStatus() { return(PlayerPrefsUtil.HasKey(PlayerPrefsKey.BgMusicMuteKey) ? IntToBool(PlayerPrefsUtil.GetIntSimple(PlayerPrefsKey.BgMusicMuteKey)) : musicOn); }
/// <summary> /// 从本地数据获取如果没有返回musicVolume /// </summary> /// <returns></returns> private float LoadBackgroundVolume() { return(PlayerPrefsUtil.HasKey(PlayerPrefsKey.BgMusicVolKey) ? PlayerPrefsUtil.GetFloatSimple(PlayerPrefsKey.BgMusicVolKey) : musicVolume); }