3335 在更新完 builtin 资源后,卸载assetbundle包
(cherry picked from commit 35d83572657b178f06752886e2675ea94cee9047)
| | |
| | |
|
| | | void Start()
|
| | | {
|
| | | WindowCenter.Instance.DestoryWinsByStage(WindowCenter.WindowStage.Launch);
|
| | | AssetBundleUtility.Instance.UnloadAssetBundle("builtin/prefabs", true, false);
|
| | |
|
| | | Application.backgroundLoadingPriority = ThreadPriority.High;
|
| | | SoundPlayer.Instance.PlayLoginMusic();
|
| | | Config.Instance.PreLoadConfigs();
|
| | |
| | | Config.Instance.RegisterGlobalEvent();
|
| | | PackageRegedit.Init();
|
| | | DebugUtility.Instance.CreateDebugRoot();
|
| | |
|
| | | WindowCenter.Instance.OpenFromLocal<LaunchWin>();
|
| | |
|
| | | var sdkInitedTask = new SDKInitedTask();
|
| | |
| | | {
|
| | | WindowConfig.Release();
|
| | | UnloadAssetBundle("builtin/scriptableobjects", true, false);
|
| | | Snxxz.UI.WindowCenter.Instance.DestoryWinsByStage(Snxxz.UI.WindowCenter.WindowStage.Launch);
|
| | | UnloadAssetBundle("builtin/prefabs", true, false);
|
| | |
|
| | | var path = AssetVersionUtility.GetBuiltInAssetFilePath("builtin_assetbundle");
|
| | | var assetBundle = AssetBundle.LoadFromFile(path);
|