| | |
| | | Application.backgroundLoadingPriority = ThreadPriority.High; |
| | | Screen.sleepTimeout = SleepTimeout.NeverSleep; |
| | | |
| | | SDKUtils.Instance.Init(); //原sdk接口 |
| | | if (!AssetSource.isUseAssetBundle) |
| | | { |
| | | InitSystemMgr(); |
| | | |
| | | InitSystemMgr(); |
| | | SDKUtils.Instance.Init(); //原sdk接口
|
| | |
|
| | | // 这里还没开始加载配置 但是提前加载了供LaunchWin使用
|
| | | PriorLanguageConfig.ForceInit();
|
| | | InitialFunctionConfig.ForceInit(); |
| | | // 这里还没开始加载配置 但是提前加载了供LaunchWin使用 |
| | | PriorLanguageConfig.LazyInit(); |
| | | InitialFunctionConfig.LazyInit(); |
| | | |
| | | UIManager.Instance.OpenWindow<LaunchWin>(); |
| | | UIManager.Instance.OpenWindow<LaunchWin>(); |
| | | } |
| | | |
| | | |
| | | var builtInAssetCopyTask = new BuiltInAssetCopyTask(); |
| | | var requestPermissionStart = new RequestPermissionStart(); |
| | |
| | | tasks.Enqueue(checkAssetValidTask); |
| | | tasks.Enqueue(downLoadAssetTask); |
| | | tasks.Enqueue(assetBundleInitTask); |
| | | |
| | | tasks.Enqueue(configInitTask); |
| | | tasks.Enqueue(launchFadeOutTask); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | protected void InitSystemMgr() |
| | | public void InitSystemMgr() |
| | | { |
| | | ResManager.Instance.Init(); |
| | | UIManager.Instance.Init(); |