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