yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
Main/Core/GameEngine/Launch/InitSettingTask.cs
@@ -1,5 +1,6 @@
using Cysharp.Threading.Tasks;
using UnityEngine;
public class InitSettingTask : LaunchTask
@@ -14,17 +15,22 @@
    {
        ShaderUtility.InitGlobalParams();
        // SoundPlayer.CreateSoundPlayer();
        SoundPlayer.Instance.Init();
        SoundPlayer.Instance.PlayLoginMusic();
        SoundPlayer.CreateSoundPlayer().ContinueWith(() => {
            SoundPlayer.Instance.Init();
            SoundPlayer.Instance.PlayLoginMusic();
            SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
            SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
        }).Forget();
        // SoundPlayer.Instance.PlayBackGroundMusic(41);
        SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
        SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
        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();