少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-23 d102f4debbc0d991efb8ad9c7f1ad8b10dcfd650
3335 调整游戏初始化顺序
1个文件已修改
27 ■■■■ 已修改文件
Core/GameEngine/Login/Launch.cs 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Login/Launch.cs
@@ -40,20 +40,7 @@
        Application.backgroundLoadingPriority = ThreadPriority.BelowNormal;
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
        ShaderUtility.InitGlobalParams();
        SoundPlayer.CreateSoundPlayer();
        SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
        SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
        SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
        SDKUtility.Instance.Init();
        GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
        GameObjectPoolManager.Instance.Initialize();
        ExceptionCatcher.Init();
        ExceptionCatcher.Catch();
        DebugUtility.Instance.Init();
        GlobalTimeEvent.Instance.Begin();
#if UNITY_ANDROID && !UNITY_EDITOR
        if (!SDKUtility.builtinAssetCopyFinished)
@@ -138,6 +125,20 @@
        {
            AssetBundleUtility.Instance.InitBuiltInAsset();
        }
        ShaderUtility.InitGlobalParams();
        SoundPlayer.CreateSoundPlayer();
        SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
        SystemSetting.Instance.SetSoundEffect(SystemSetting.Instance.GetSoundEffect());
        SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
        GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
        GameObjectPoolManager.Instance.Initialize();
        ExceptionCatcher.Init();
        ExceptionCatcher.Catch();
        DebugUtility.Instance.Init();
        GlobalTimeEvent.Instance.Begin();
    }
    private byte m_Step = 0;