| | |
| | | |
| | | if (!firstLaunch) |
| | | { |
| | | LoadInitalConfig().Forget(); |
| | | //LoadInitalConfig().Forget(); |
| | | done = true; |
| | | } |
| | | } |
| | | |
| | | protected async UniTask LoadInitalConfig() |
| | | { |
| | | await ConfigManager.Instance.LoadConfigByType(typeof(InitialFunctionConfig)); |
| | | //应该是下载最新的表格后再次加载 非拷贝 |
| | | //protected async UniTask LoadInitalConfig() |
| | | //{ |
| | | // await ConfigManager.Instance.LoadConfigByType(typeof(InitialFunctionConfig)); |
| | | |
| | | done = true; |
| | | } |
| | | // done = true; |
| | | //} |
| | | |
| | | public override void End() |
| | | { |
| | | if (!AssetSource.builtInFromEditor) |
| | | if (AssetSource.isUseAssetBundle) |
| | | { |
| | | AssetBundleUtility.Instance.InitBuiltInAsset(); |
| | | } |
| | | // ConfigInitiator.SyncInit(); |
| | | UIManager.Instance.CloseWindow<DownLoadWin>(); |
| | | UIManager.Instance.CloseWindow<VersionUpdateWin>(); |
| | | UIManager.Instance.CloseWindow<LaunchWin>(); |
| | | |
| | | if (!AssetSource.uiFromEditor) |
| | | { |
| | | AssetBundleUtility.Instance.UnloadAssetBundle("builtin/prefabs", true, false); |
| | | } |
| | | UIManager.Instance.OpenWindow<LaunchWin>(); |
| | | Language.InitDefaultLanguage(); |
| | | } |
| | | |
| | |
| | | |
| | | private void EditorCopyAsset() |
| | | { |
| | | if (!AssetSource.allFromEditor) |
| | | if (AssetSource.isUseAssetBundle) |
| | | { |
| | | // FileExtersion.DirectoryCopy(ResourcesPath.CONFIG_FODLER, ResourcesPath.Instance.StreamingAssetPath + "config"); |
| | | // FileExtersion.DirectoryCopy(ResourcesPath.ResourcesOutPath + "BuiltIn", ResourcesPath.Instance.StreamingAssetPath + "builtin"); |
| | | FileExtersion.DirectoryCopy(ResourcesPath.CONFIG_FODLER, ResourcesPath.Instance.StreamingAssetPath + "config"); |
| | | FileExtersion.DirectoryCopy(ResourcesPath.ResourcesOutPath + "BuiltIn", ResourcesPath.Instance.StreamingAssetPath + "builtin"); |
| | | } |
| | | } |
| | | |