From 51b0f6ed9f4e1d3bb6f8144470b46908c7699a96 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 11 五月 2026 16:20:37 +0800
Subject: [PATCH] Merge branch 'master' into h5version

---
 Main/Core/GameEngine/Launch/InitSettingTask.cs |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/Main/Core/GameEngine/Launch/InitSettingTask.cs b/Main/Core/GameEngine/Launch/InitSettingTask.cs
index 8f0d469..e9b6b13 100644
--- a/Main/Core/GameEngine/Launch/InitSettingTask.cs
+++ b/Main/Core/GameEngine/Launch/InitSettingTask.cs
@@ -1,5 +1,6 @@
 
 
+using Cysharp.Threading.Tasks;
 using UnityEngine;
 
 public class InitSettingTask : LaunchTask
@@ -13,16 +14,26 @@
     public override void Begin()
     {
         ShaderUtility.InitGlobalParams();
-        SoundPlayer.CreateSoundPlayer();
-        //SoundPlayer.Instance.PlayLoginMusic();
+        // SoundPlayer.CreateSoundPlayer();
+        SoundPlayer.CreateSoundPlayer().ContinueWith(() => {
+            SoundPlayer.Instance.Init();
+            SoundPlayer.Instance.PlayLoginMusic();
 
-        SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
-        SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
+            SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
+            SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
+            SystemSetting.Instance.SetMuteMusic(SystemSetting.Instance.GetMuteMusic());
+            SystemSetting.Instance.SetMuteSoundEffect(SystemSetting.Instance.GetMuteSoundEffect());
+        }).Forget();
+        
+        // SoundPlayer.Instance.PlayBackGroundMusic(41);
+
+
+
         SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
         SystemSetting.Instance.LetFPSUnLimit();
 
         DebugUtility.Instance.Init();
-        DebugUtility.Instance.CreateDebugRoot();
+        DebugUtility.Instance.CreateDebugRoot().Forget();
 
         GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
         GameObjectPoolManager.Instance.Initialize();
@@ -40,6 +51,7 @@
     public override void End()
     {
         expectTime = timer;
+        OperationLogCollect.Instance.RecordLauchEvent(10);
     }
 
     public override void Update()

--
Gitblit v1.8.0