默认音量为1

This commit is contained in:
shenjianxing 2025-05-21 10:31:52 +08:00
parent 79774504bd
commit 19fc4c839c

View File

@ -18,6 +18,7 @@ namespace QFramework.Example
ResLoader loader; ResLoader loader;
protected override void OnInit(IUIData uiData = null) protected override void OnInit(IUIData uiData = null)
{ {
AudioKit.Settings.VoiceVolume.Value = 1;
TypeEventSystem.Global.Register<OnModuleQuit>(OnModuleQuithandler).UnRegisterWhenGameObjectDestroyed(this); TypeEventSystem.Global.Register<OnModuleQuit>(OnModuleQuithandler).UnRegisterWhenGameObjectDestroyed(this);
loader = ResLoader.Allocate(); loader = ResLoader.Allocate();
Group.onValueChanged.AddListener(isOn => Group.onValueChanged.AddListener(isOn =>