diff --git a/Assets/Art/UIPrefab/UISetting.prefab b/Assets/Art/UIPrefab/UISetting.prefab index 85d8035d..b8c81173 100644 --- a/Assets/Art/UIPrefab/UISetting.prefab +++ b/Assets/Art/UIPrefab/UISetting.prefab @@ -1690,10 +1690,10 @@ MonoBehaviour: m_FillRect: {fileID: 4260347516208239176} m_HandleRect: {fileID: 8825168004229886871} m_Direction: 0 - m_MinValue: 0.01 + m_MinValue: 0 m_MaxValue: 0.1 m_WholeNumbers: 0 - m_Value: 0.0983 + m_Value: 0.05 m_OnValueChanged: m_PersistentCalls: m_Calls: [] @@ -2088,7 +2088,7 @@ MonoBehaviour: m_MinValue: 0 m_MaxValue: 1 m_WholeNumbers: 0 - m_Value: 0.36 + m_Value: 0.5 m_OnValueChanged: m_PersistentCalls: m_Calls: [] diff --git a/Assets/QFramework/Toolkits/AudioKit/Scripts/AudioKitSettings.cs b/Assets/QFramework/Toolkits/AudioKit/Scripts/AudioKitSettings.cs index f3a3de5a..0b03f74a 100644 --- a/Assets/QFramework/Toolkits/AudioKit/Scripts/AudioKitSettings.cs +++ b/Assets/QFramework/Toolkits/AudioKit/Scripts/AudioKitSettings.cs @@ -45,11 +45,11 @@ namespace QFramework } ); - SoundVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_SOUND_VOLUME, 1.0f); + SoundVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_SOUND_VOLUME, 0.5f); - MusicVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_MUSIC_VOLUME, 1.0f); + MusicVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_MUSIC_VOLUME, 0.5f); - VoiceVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_VOICE_VOLUME, 1.0f); + VoiceVolume = new PlayerPrefsFloatProperty(KEY_AUDIO_MANAGER_VOICE_VOLUME, 0.5f); } diff --git a/Assets/Scripts/UI/UISetting.cs b/Assets/Scripts/UI/UISetting.cs index 800525b9..1e4199b8 100644 --- a/Assets/Scripts/UI/UISetting.cs +++ b/Assets/Scripts/UI/UISetting.cs @@ -14,7 +14,6 @@ namespace QFramework.Example { mData = uiData as UISettingData ?? new UISettingData(); - AudioKit.Settings.MusicVolume.RegisterWithInitValue(v => VoiceSlider.value = v).UnRegisterWhenGameObjectDestroyed(this); VoiceSlider.onValueChanged.AddListener(volume => {