├── .gitattributes ├── .gitignore ├── Assets ├── BundleMaster.meta ├── BundleMaster │ ├── BMWebGLAdapter.meta │ ├── BMWebGLAdapter │ │ ├── AssetComponentInit_WebGL.cs │ │ ├── AssetComponentInit_WebGL.cs.meta │ │ ├── AssetComponentTools_WebGL.cs │ │ ├── AssetComponentTools_WebGL.cs.meta │ │ ├── AssetComponentUpdate_WebGL.cs │ │ ├── AssetComponentUpdate_WebGL.cs.meta │ │ ├── LoadBaseRuntimeLoad_WebGL.cs │ │ └── LoadBaseRuntimeLoad_WebGL.cs.meta │ ├── BundleMaster.asmdef │ ├── BundleMaster.asmdef.meta │ ├── BundleMasterRuntime.meta │ ├── BundleMasterRuntime │ │ ├── AssetComponent.cs │ │ ├── AssetComponent.cs.meta │ │ ├── AssetComponentCheck.cs │ │ ├── AssetComponentCheck.cs.meta │ │ ├── AssetComponentConfig.cs │ │ ├── AssetComponentConfig.cs.meta │ │ ├── AssetComponentInit.cs │ │ ├── AssetComponentInit.cs.meta │ │ ├── AssetComponentLife.cs │ │ ├── AssetComponentLife.cs.meta │ │ ├── AssetComponentTools.cs │ │ ├── AssetComponentTools.cs.meta │ │ ├── AssetComponentUnLoad.cs │ │ ├── AssetComponentUnLoad.cs.meta │ │ ├── AssetComponentUpdate.cs │ │ ├── AssetComponentUpdate.cs.meta │ │ ├── Base.meta │ │ ├── Base │ │ │ ├── LoadBase.cs │ │ │ ├── LoadBase.cs.meta │ │ │ ├── LoadBaseRuntimeLoad.cs │ │ │ ├── LoadBaseRuntimeLoad.cs.meta │ │ │ ├── LoadBaseUnLoad.cs │ │ │ ├── LoadBaseUnLoad.cs.meta │ │ │ ├── LoadDepend.cs │ │ │ ├── LoadDepend.cs.meta │ │ │ ├── LoadFile.cs │ │ │ ├── LoadFile.cs.meta │ │ │ ├── LoadGroup.cs │ │ │ ├── LoadGroup.cs.meta │ │ │ ├── LoadHandlerFactory.cs │ │ │ ├── LoadHandlerFactory.cs.meta │ │ │ ├── WebLoadProgress.cs │ │ │ └── WebLoadProgress.cs.meta │ │ ├── BundleMasterRuntimeConfig.cs │ │ ├── BundleMasterRuntimeConfig.cs.meta │ │ ├── BundleRuntimeInfo.cs │ │ ├── BundleRuntimeInfo.cs.meta │ │ ├── DownLoadTask.cs │ │ ├── DownLoadTask.cs.meta │ │ ├── Helper.meta │ │ ├── Helper │ │ │ ├── AssetLogHelper.cs │ │ │ ├── AssetLogHelper.cs.meta │ │ │ ├── DeleteHelper.cs │ │ │ ├── DeleteHelper.cs.meta │ │ │ ├── DownloadBundleHelper.cs │ │ │ ├── DownloadBundleHelper.cs.meta │ │ │ ├── GroupAssetHelper.cs │ │ │ ├── GroupAssetHelper.cs.meta │ │ │ ├── HandlerIdHelper.cs │ │ │ ├── HandlerIdHelper.cs.meta │ │ │ ├── PathUnifiedHelper.cs │ │ │ ├── PathUnifiedHelper.cs.meta │ │ │ ├── TimeAwaitHelper.cs │ │ │ ├── TimeAwaitHelper.cs.meta │ │ │ ├── ValueHelper.cs │ │ │ ├── ValueHelper.cs.meta │ │ │ ├── VerifyHelper.cs │ │ │ └── VerifyHelper.cs.meta │ │ ├── LoadHandler.cs │ │ ├── LoadHandler.cs.meta │ │ ├── LoadHandlerBase.cs │ │ ├── LoadHandlerBase.cs.meta │ │ ├── LoadSceneHandler.cs │ │ ├── LoadSceneHandler.cs.meta │ │ ├── UpdateBundleDataInfo.cs │ │ └── UpdateBundleDataInfo.cs.meta │ ├── CoroutineLock.meta │ ├── CoroutineLock │ │ ├── CoroutineLock.cs │ │ ├── CoroutineLock.cs.meta │ │ ├── CoroutineLockComponent.cs │ │ ├── CoroutineLockComponent.cs.meta │ │ ├── CoroutineLockQueue.cs │ │ ├── CoroutineLockQueue.cs.meta │ │ ├── CoroutineLockType.cs │ │ ├── CoroutineLockType.cs.meta │ │ ├── LoadPathConvertHelper.cs │ │ └── LoadPathConvertHelper.cs.meta │ ├── ETTaskAsync.meta │ ├── ETTaskAsync │ │ ├── AsyncETTaskCompletedMethodBuilder.cs │ │ ├── AsyncETTaskCompletedMethodBuilder.cs.meta │ │ ├── AsyncETTaskMethodBuilder.cs │ │ ├── AsyncETTaskMethodBuilder.cs.meta │ │ ├── AsyncETVoidMethodBuilder.cs │ │ ├── AsyncETVoidMethodBuilder.cs.meta │ │ ├── AsyncMethodBuilderAttribute.cs │ │ ├── AsyncMethodBuilderAttribute.cs.meta │ │ ├── ETCancellationToken.cs │ │ ├── ETCancellationToken.cs.meta │ │ ├── ETTask.cs │ │ ├── ETTask.cs.meta │ │ ├── ETTaskCompleted.cs │ │ ├── ETTaskCompleted.cs.meta │ │ ├── ETTaskHelper.cs │ │ ├── ETTaskHelper.cs.meta │ │ ├── ETVoid.cs │ │ ├── ETVoid.cs.meta │ │ ├── IAwaiter.cs │ │ └── IAwaiter.cs.meta │ ├── LiteMultiThreadDownLoad.meta │ ├── LiteMultiThreadDownLoad │ │ ├── BundleMaster.LMTD.asmdef │ │ ├── BundleMaster.LMTD.asmdef.meta │ │ ├── ILiteThreadAction.cs │ │ ├── ILiteThreadAction.cs.meta │ │ ├── LMTDProxy.cs │ │ ├── LMTDProxy.cs.meta │ │ ├── LMTDownLoad.cs │ │ ├── LMTDownLoad.cs.meta │ │ ├── LiteThread.cs │ │ ├── LiteThread.cs.meta │ │ ├── LmtdTable.cs │ │ ├── LmtdTable.cs.meta │ │ ├── ThreadFactory.cs │ │ └── ThreadFactory.cs.meta │ ├── NintendoAdapter.meta │ └── NintendoAdapter │ │ ├── AssetComponentInit_Nintendo.cs │ │ ├── AssetComponentInit_Nintendo.cs.meta │ │ ├── AssetComponentTools_Nintendo.cs │ │ ├── AssetComponentTools_Nintendo.cs.meta │ │ ├── AssetComponentUpdate_Nintendo.cs │ │ ├── AssetComponentUpdate_Nintendo.cs.meta │ │ ├── LoadBaseRuntimeLoad_Nintendo.cs │ │ └── LoadBaseRuntimeLoad_Nintendo.cs.meta ├── Bundles.meta ├── Bundles │ ├── Atlas.meta │ ├── Atlas │ │ ├── UISpriteAtlas.spriteatlas │ │ └── UISpriteAtlas.spriteatlas.meta │ ├── GroupBundle.meta │ ├── GroupBundle │ │ ├── bds.png │ │ ├── bds.png.meta │ │ ├── ylzy.jpg │ │ ├── ylzy.jpg.meta │ │ ├── zfnp.jpg │ │ └── zfnp.jpg.meta │ ├── LoginUI.prefab │ ├── LoginUI.prefab.meta │ ├── ResetUI.prefab │ ├── ResetUI.prefab.meta │ ├── ShaderVariants.shadervariants │ ├── ShaderVariants.shadervariants.meta │ ├── SubBundleAssets.meta │ ├── SubBundleAssets │ │ ├── SubUI_Copy.prefab │ │ ├── SubUI_Copy.prefab.meta │ │ ├── mister91jiao.prefab │ │ └── mister91jiao.prefab.meta │ ├── SubUI.prefab │ ├── SubUI.prefab.meta │ ├── car.mp4 │ └── car.mp4.meta ├── Editor.meta ├── Editor │ ├── BundleMasterEditor.meta │ └── BundleMasterEditor │ │ ├── AssetLoadTable.cs │ │ ├── AssetLoadTable.cs.meta │ │ ├── AssetsLoadSetting.cs │ │ ├── AssetsLoadSetting.cs.meta │ │ ├── AssetsOriginSetting.cs │ │ ├── AssetsOriginSetting.cs.meta │ │ ├── AssetsSetting.cs │ │ ├── AssetsSetting.cs.meta │ │ ├── BuildAssets.cs │ │ ├── BuildAssets.cs.meta │ │ ├── BuildAssetsTools.cs │ │ ├── BuildAssetsTools.cs.meta │ │ ├── BuildSettings.meta │ │ ├── BuildSettings │ │ ├── AssetLoadTable.asset │ │ ├── AssetLoadTable.asset.meta │ │ ├── AssetsLoadSetting_0.asset │ │ ├── AssetsLoadSetting_0.asset.meta │ │ ├── AssetsLoadSetting_1.asset │ │ ├── AssetsLoadSetting_1.asset.meta │ │ ├── AssetsOriginSetting_0.asset │ │ └── AssetsOriginSetting_0.asset.meta │ │ ├── BundleMasterInterface.meta │ │ ├── BundleMasterInterface │ │ ├── BundleMasterAssetsLoadWindow.cs │ │ ├── BundleMasterAssetsLoadWindow.cs.meta │ │ ├── BundleMasterMainWindow.cs │ │ ├── BundleMasterMainWindow.cs.meta │ │ ├── BundleMasterOriginLoadWindow.cs │ │ ├── BundleMasterOriginLoadWindow.cs.meta │ │ ├── BundleMasterWindow.cs │ │ └── BundleMasterWindow.cs.meta │ │ ├── BundleUsefulTool.cs │ │ ├── BundleUsefulTool.cs.meta │ │ ├── DevelopSceneChange.cs │ │ └── DevelopSceneChange.cs.meta ├── NintendoSDKPlugin.meta ├── NintendoSDKPlugin │ ├── Unity.NintendoSDK.asmdef │ └── Unity.NintendoSDK.asmdef.meta ├── Res.meta ├── Res │ ├── Mat.meta │ ├── Mat │ │ ├── DefMat.mat │ │ ├── DefMat.mat.meta │ │ ├── logoMat.mat │ │ ├── logoMat.mat.meta │ │ ├── obj_0.mat │ │ ├── obj_0.mat.meta │ │ ├── obj_1.mat │ │ ├── obj_1.mat.meta │ │ ├── obj_2.mat │ │ ├── obj_2.mat.meta │ │ ├── obj_3.mat │ │ └── obj_3.mat.meta │ ├── Shader.meta │ ├── Shader │ │ ├── Loli.shader │ │ └── Loli.shader.meta │ ├── Texture.meta │ ├── Texture │ │ ├── obj_0.jpg │ │ ├── obj_0.jpg.meta │ │ ├── obj_1.jpg │ │ ├── obj_1.jpg.meta │ │ ├── obj_2.jpg │ │ ├── obj_2.jpg.meta │ │ ├── obj_3.jpg │ │ └── obj_3.jpg.meta │ ├── UI.meta │ ├── UI │ │ ├── 91logo.png │ │ ├── 91logo.png.meta │ │ ├── LoginBG.jpg │ │ ├── LoginBG.jpg.meta │ │ ├── xjj.jpg │ │ └── xjj.jpg.meta │ ├── yahei.ttf │ └── yahei.ttf.meta ├── Resources.meta ├── Resources │ ├── BMConfig.asset │ ├── BMConfig.asset.meta │ ├── DownLoadUI.prefab │ ├── DownLoadUI.prefab.meta │ ├── EventSystem.prefab │ ├── EventSystem.prefab.meta │ ├── UIManager.prefab │ ├── UIManager.prefab.meta │ ├── UniversalRenderPipelineAsset.asset │ ├── UniversalRenderPipelineAsset.asset.meta │ ├── UniversalRenderPipelineAsset_Renderer.asset │ └── UniversalRenderPipelineAsset_Renderer.asset.meta ├── Scenes.meta ├── Scenes │ ├── Game.meta │ ├── Game.unity │ ├── Game.unity.meta │ ├── Game │ │ ├── LightingData.asset │ │ ├── LightingData.asset.meta │ │ ├── Lightmap-0_comp_dir.png │ │ ├── Lightmap-0_comp_dir.png.meta │ │ ├── Lightmap-0_comp_light.exr │ │ ├── Lightmap-0_comp_light.exr.meta │ │ ├── ReflectionProbe-0.exr │ │ └── ReflectionProbe-0.exr.meta │ ├── GameSettings.lighting │ ├── GameSettings.lighting.meta │ ├── Init.unity │ ├── Init.unity.meta │ ├── Init_2.unity │ └── Init_2.unity.meta ├── Scripts.meta ├── Scripts │ ├── BPath.cs │ ├── BPath.cs.meta │ ├── Init.cs │ ├── Init.cs.meta │ ├── InstallHelper.cs │ ├── InstallHelper.cs.meta │ ├── Rot.cs │ └── Rot.cs.meta ├── StreamingAssets.meta ├── StreamingAssets │ ├── AllBundle.meta │ ├── AllBundle │ │ ├── DependLogs.txt │ │ ├── DependLogs.txt.meta │ │ ├── FileLogs.txt │ │ ├── FileLogs.txt.meta │ │ ├── GroupLogs.txt │ │ ├── GroupLogs.txt.meta │ │ ├── VersionLogs.txt │ │ ├── VersionLogs.txt.meta │ │ ├── allbundle_assets_bundles_atlas_uispriteatlas_spriteatlas.bundle │ │ ├── allbundle_assets_bundles_atlas_uispriteatlas_spriteatlas.bundle.meta │ │ ├── allbundle_assets_bundles_car_mp4.bundle │ │ ├── allbundle_assets_bundles_car_mp4.bundle.meta │ │ ├── allbundle_assets_bundles_groupbundle.bundle │ │ ├── allbundle_assets_bundles_groupbundle.bundle.meta │ │ ├── allbundle_assets_bundles_loginui_prefab.bundle │ │ ├── allbundle_assets_bundles_loginui_prefab.bundle.meta │ │ ├── allbundle_assets_bundles_resetui_prefab.bundle │ │ ├── allbundle_assets_bundles_resetui_prefab.bundle.meta │ │ ├── allbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle │ │ ├── allbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle.meta │ │ ├── allbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle │ │ ├── allbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle.meta │ │ ├── allbundle_assets_bundles_subui_prefab.bundle │ │ ├── allbundle_assets_bundles_subui_prefab.bundle.meta │ │ ├── allbundle_assets_res_ui.bundle │ │ ├── allbundle_assets_res_ui.bundle.meta │ │ ├── allbundle_assets_res_yahei_ttf.bundle │ │ ├── allbundle_assets_res_yahei_ttf.bundle.meta │ │ ├── allbundle_assets_scenes_game_unity.bundle │ │ ├── allbundle_assets_scenes_game_unity.bundle.meta │ │ ├── shader_allbundle │ │ └── shader_allbundle.meta │ ├── SubBundle.meta │ └── SubBundle │ │ ├── DependLogs.txt │ │ ├── DependLogs.txt.meta │ │ ├── FileLogs.txt │ │ ├── FileLogs.txt.meta │ │ ├── GroupLogs.txt │ │ ├── GroupLogs.txt.meta │ │ ├── VersionLogs.txt │ │ ├── VersionLogs.txt.meta │ │ ├── shader_subbundle │ │ ├── shader_subbundle.meta │ │ ├── subbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle │ │ ├── subbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle.meta │ │ ├── subbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle │ │ └── subbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle.meta ├── UniversalRenderPipelineGlobalSettings.asset └── UniversalRenderPipelineGlobalSettings.asset.meta ├── BuildBundles ├── AllBundle │ ├── AllBundle │ ├── AllBundle.manifest │ ├── DependLogs.txt │ ├── FileLogs.txt │ ├── GroupLogs.txt │ ├── VersionLogs.txt │ ├── allbundle_assets_bundles_atlas_uispriteatlas_spriteatlas.bundle │ ├── allbundle_assets_bundles_atlas_uispriteatlas_spriteatlas.bundle.manifest │ ├── allbundle_assets_bundles_car_mp4.bundle │ ├── allbundle_assets_bundles_car_mp4.bundle.manifest │ ├── allbundle_assets_bundles_groupbundle.bundle │ ├── allbundle_assets_bundles_groupbundle.bundle.manifest │ ├── allbundle_assets_bundles_loginui_prefab.bundle │ ├── allbundle_assets_bundles_loginui_prefab.bundle.manifest │ ├── allbundle_assets_bundles_resetui_prefab.bundle │ ├── allbundle_assets_bundles_resetui_prefab.bundle.manifest │ ├── allbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle │ ├── allbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle.manifest │ ├── allbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle │ ├── allbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle.manifest │ ├── allbundle_assets_bundles_subui_prefab.bundle │ ├── allbundle_assets_bundles_subui_prefab.bundle.manifest │ ├── allbundle_assets_res_ui.bundle │ ├── allbundle_assets_res_ui.bundle.manifest │ ├── allbundle_assets_res_yahei_ttf.bundle │ ├── allbundle_assets_res_yahei_ttf.bundle.manifest │ ├── allbundle_assets_scenes_game_unity.bundle │ ├── allbundle_assets_scenes_game_unity.bundle.manifest │ ├── shader_allbundle │ └── shader_allbundle.manifest └── SubBundle │ ├── DependLogs.txt │ ├── FileLogs.txt │ ├── GroupLogs.txt │ ├── SubBundle │ ├── SubBundle.manifest │ ├── VersionLogs.txt │ ├── shader_subbundle │ ├── shader_subbundle.manifest │ ├── subbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle │ ├── subbundle_assets_bundles_subbundleassets_mister91jiao_prefab.bundle.manifest │ ├── subbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle │ └── subbundle_assets_bundles_subbundleassets_subui_copy_prefab.bundle.manifest ├── HotfixBundles ├── AllBundle │ └── CRCLog.txt └── SubBundle │ └── CRCLog.txt ├── OriginTestAssets ├── _WebGL.zip ├── modAssets │ └── vertexColorPlane.fbx ├── nintendo_switch.mp4 └── xjj.jpg ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── BurstAotSettings_Switch.json ├── BurstAotSettings_WebGL.json ├── ClusterInputManager.asset ├── CommonBurstAotSettings.json ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── ShaderGraphSettings.asset ├── TagManager.asset ├── TimeManager.asset ├── TimelineSettings.asset ├── URPProjectSettings.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config ├── README.md └── obj └── Debug └── .NETFramework,Version=v4.7.1.AssemblyAttributes.cs /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | #* text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.vs 2 | .vs/ 3 | /.idea 4 | .idea/ 5 | *.csproj 6 | *.sln 7 | 8 | /Logs 9 | /Temp 10 | /Logs 11 | /Library 12 | /UserSettings 13 | /obj 14 | /SwitchIL2CPPCache -------------------------------------------------------------------------------- /Assets/BundleMaster.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c1c40e9c96f6934cb51a16138c6b45f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d69029fcc3e238e42b6214a1cdd20512 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/AssetComponentInit_WebGL.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5b7dc792535baf4e99e7995884aef3e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/AssetComponentTools_WebGL.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Text; 3 | using ET; 4 | using UnityEngine.Networking; 5 | 6 | namespace BM 7 | { 8 | #if BMWebGL 9 | public static partial class AssetComponent 10 | { 11 | /// 12 | /// WebGL获取Bundle信息文件的路径 13 | /// 14 | internal static string BundleFileExistPath_WebGL(string bundlePackageName, string fileName) 15 | { 16 | string path = Path.Combine(AssetComponentConfig.LocalBundlePath, bundlePackageName, fileName); 17 | return path; 18 | } 19 | 20 | internal static async ETTask LoadWebGLFileText(string filePath) 21 | { 22 | ETTask tcs = ETTask.Create(); 23 | using (UnityWebRequest webRequest = UnityWebRequest.Get(filePath)) 24 | { 25 | UnityWebRequestAsyncOperation weq = webRequest.SendWebRequest(); 26 | weq.completed += (o) => 27 | { 28 | tcs.SetResult(); 29 | }; 30 | await tcs; 31 | #if UNITY_2020_1_OR_NEWER 32 | if (webRequest.result == UnityWebRequest.Result.Success) 33 | #else 34 | if (string.IsNullOrEmpty(webRequest.error)) 35 | #endif 36 | { 37 | string str = webRequest.downloadHandler.text; 38 | return str; 39 | } 40 | else 41 | { 42 | AssetLogHelper.LogError("WebGL初始化分包未找到要读取的文件: \t" + filePath); 43 | return ""; 44 | } 45 | 46 | } 47 | } 48 | 49 | 50 | } 51 | #endif 52 | } 53 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/AssetComponentTools_WebGL.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd1a75267f364f24fbc4b6b1a8e9db8c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/AssetComponentUpdate_WebGL.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using ET; 3 | 4 | namespace BM 5 | { 6 | public static partial class AssetComponent 7 | { 8 | #if BMWebGL 9 | /// 10 | /// 检查分包是否需要更新 11 | /// 12 | /// 所有分包的名称以及是否验证文件CRC 13 | #pragma warning disable CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 14 | public static async ETTask CheckAllBundlePackageUpdate(Dictionary bundlePackageNames) 15 | #pragma warning restore CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 16 | { 17 | UpdateBundleDataInfo updateBundleDataInfo = new UpdateBundleDataInfo(); 18 | updateBundleDataInfo.NeedUpdate = false; 19 | 20 | if (AssetComponentConfig.AssetLoadMode != AssetLoadMode.Build) 21 | { 22 | if (AssetComponentConfig.AssetLoadMode == AssetLoadMode.Local) 23 | { 24 | AssetComponentConfig.HotfixPath = AssetComponentConfig.LocalBundlePath; 25 | } 26 | else 27 | { 28 | #if !UNITY_EDITOR 29 | AssetLogHelper.LogError("AssetLoadMode = AssetLoadMode.Develop 只能在编辑器下运行"); 30 | #endif 31 | } 32 | } 33 | else 34 | { 35 | AssetLogHelper.LogError("AssetLoadMode = AssetLoadMode.Build WebGL无需更新,请用Local模式"); 36 | } 37 | return updateBundleDataInfo; 38 | } 39 | 40 | /// 41 | /// 下载更新 42 | /// 43 | #pragma warning disable CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 44 | public static async ETTask DownLoadUpdate(UpdateBundleDataInfo updateBundleDataInfo) 45 | #pragma warning restore CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 46 | { 47 | AssetLogHelper.LogError("WebGL无需更新"); 48 | } 49 | 50 | #endif 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/AssetComponentUpdate_WebGL.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8cc33878f4819c42a47c7debccdeee8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BMWebGLAdapter/LoadBaseRuntimeLoad_WebGL.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09ed7446ed2d47048995e59b61e4fe9d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMaster.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BundleMaster", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:3bc86b810ed97834e8d5d8df82632a59", 6 | "GUID:cf72940284cbbb5479c28a3e039c34f6" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMaster.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b98a4eaf01896f5418b13b9950aabd98 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5ee9edd577cb5e42bacaafc5fb2d7b4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 625539e87edf0b248a1acba1c7bad881 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentCheck.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace BM 6 | { 7 | public static partial class AssetComponent 8 | { 9 | /// 10 | /// 判定一个资源是否存在,如果这个资源是组里的资源,那么只能检测到这个资源所在的组是否存在 11 | /// 12 | public static bool CheckAssetExist(string assetPath, string bundlePackageName = null) 13 | { 14 | if (bundlePackageName == null) 15 | { 16 | bundlePackageName = AssetComponentConfig.DefaultBundlePackageName; 17 | } 18 | if (AssetComponentConfig.AssetLoadMode == AssetLoadMode.Develop) 19 | { 20 | #if UNITY_EDITOR 21 | assetPath = Path.Combine(Application.dataPath + "/../", assetPath); 22 | return File.Exists(assetPath); 23 | #else 24 | AssetLogHelper.LogError("检查资源: " + assetPath + " 失败(资源检查Develop模式只能在编辑器下运行)"); 25 | return false; 26 | #endif 27 | } 28 | if (!BundleNameToRuntimeInfo.TryGetValue(bundlePackageName, out BundleRuntimeInfo bundleRuntimeInfo)) 29 | { 30 | AssetLogHelper.LogError(bundlePackageName + "检查资源时分包没有初始化"); 31 | return false; 32 | } 33 | string groupPath = GroupAssetHelper.IsGroupAsset(assetPath, bundleRuntimeInfo.LoadGroupDicKey); 34 | if (groupPath != null) 35 | { 36 | return true; 37 | } 38 | if (bundleRuntimeInfo.LoadFileDic.ContainsKey(assetPath)) 39 | { 40 | return true; 41 | } 42 | return false; 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentCheck.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3754ff94c99a41d68869ce87819693b1 3 | timeCreated: 1658889234 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentConfig.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace BM 4 | { 5 | /// 6 | /// 资源加载初始化所需配置信息 7 | /// 8 | public class AssetComponentConfig 9 | { 10 | /// 11 | /// 运行时配置 12 | /// 13 | private static BundleMasterRuntimeConfig _bmRuntimeConfig = null; 14 | 15 | /// 16 | /// 资源更新目录 Application.dataPath + "/../HotfixBundles/" 17 | /// 18 | public static string HotfixPath = ""; 19 | 20 | /// 21 | /// 存放本地Bundle的位置 Application.streamingAssetsPath; 22 | /// 23 | public static string LocalBundlePath = Application.streamingAssetsPath; 24 | 25 | /// 26 | /// 资源服务器的地址 http://192.168.50.157/BundleData/ 27 | /// 28 | public static string BundleServerUrl = "http://192.168.50.157/BundleData/"; 29 | 30 | /// 31 | /// 默认加载的Bundle名 32 | /// 33 | public static string DefaultBundlePackageName = ""; 34 | 35 | private static void InitRuntimeConfig() 36 | { 37 | if (_bmRuntimeConfig == null) 38 | { 39 | _bmRuntimeConfig = Resources.Load("BMConfig"); 40 | } 41 | } 42 | 43 | /// 44 | /// 加载模式 45 | /// 46 | public static AssetLoadMode AssetLoadMode 47 | { 48 | get 49 | { 50 | InitRuntimeConfig(); 51 | return _bmRuntimeConfig.AssetLoadMode; 52 | } 53 | } 54 | 55 | /// 56 | /// 最大同时下载的资源数量 57 | /// 58 | public static int MaxDownLoadCount 59 | { 60 | get 61 | { 62 | InitRuntimeConfig(); 63 | return _bmRuntimeConfig.MaxDownLoadCount; 64 | } 65 | } 66 | 67 | /// 68 | /// 下载失败最多重试次数 69 | /// 70 | public static int ReDownLoadCount 71 | { 72 | get 73 | { 74 | InitRuntimeConfig(); 75 | return _bmRuntimeConfig.ReDownLoadCount; 76 | } 77 | } 78 | 79 | } 80 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ee188bd9f9d3764eb53295b96b9af0f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentInit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e8b2f387289c754d842fdb652949f00 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentLife.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace BM 6 | { 7 | public static partial class AssetComponent 8 | { 9 | /// 10 | /// 计时 11 | /// 12 | private static float _timer = 0; 13 | 14 | /// 15 | /// 下载进度更新器 16 | /// 17 | internal static Action DownLoadAction = null; 18 | 19 | /// 20 | /// 等待计时队列 21 | /// 22 | internal static Queue TimerAwaitQueue = new Queue(); 23 | 24 | /// 25 | /// 卸载周期计时循环 26 | /// 27 | public static void Update() 28 | { 29 | float nowTime = Time.deltaTime; 30 | int awaitQueueCount = TimerAwaitQueue.Count; 31 | for (int i = 0; i < awaitQueueCount; i++) 32 | { 33 | TimerAwait timerAwait = TimerAwaitQueue.Dequeue(); 34 | if (!timerAwait.CalcSubTime(nowTime)) 35 | { 36 | TimerAwaitQueue.Enqueue(timerAwait); 37 | } 38 | } 39 | _timer += nowTime; 40 | if (_timer >= _unLoadCirculateTime) 41 | { 42 | _timer = 0; 43 | AutoAddToTrueUnLoadPool(); 44 | } 45 | 46 | //更新下载完成任务 47 | lock (DownloadBundleHelper.DownLoadFinishQueue) 48 | { 49 | if (DownloadBundleHelper.DownLoadFinishQueue.Count > 0) 50 | { 51 | int downLoadFinishCount = DownloadBundleHelper.DownLoadFinishQueue.Count; 52 | for (int i = 0; i < downLoadFinishCount; i++) 53 | { 54 | DownloadBundleHelper.DownLoadFinishQueue.Dequeue().SetResult(); 55 | } 56 | } 57 | } 58 | DownLoadAction?.Invoke(nowTime); 59 | 60 | 61 | CoroutineLockComponent.UpDate(); 62 | } 63 | 64 | /// 65 | /// 游戏关闭时调用 66 | /// 67 | public static void Destroy() 68 | { 69 | #if !BMWebGL 70 | LMTD.ThreadFactory.Destroy(); 71 | #endif 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentLife.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4695c672f06465eac1464681fef7f2c 3 | timeCreated: 1657780049 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentTools.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5f0601ee3d85c64b9e0180bd7d38119 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentUnLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c761c7d8db4810418305fb3210908af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/AssetComponentUpdate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8eee251d16fa6694282bcec23ab3bd2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 804d5928b701dc04cb3d38becfa1506c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadBase.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | /// 4 | /// 加载类型的基类 5 | /// 6 | public partial class LoadBase 7 | { 8 | public string FilePath; 9 | public string AssetBundleName; 10 | protected LoadType LoadType = LoadType.Null; 11 | } 12 | 13 | public enum LoadType 14 | { 15 | Null = 0, 16 | File = 1, 17 | Depend = 2, 18 | Group = 3 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b3bbc61493f58a4bb19a2fc69e2bf49 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadBaseRuntimeLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf604347059a8ad48a34f6147fd86111 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadBaseUnLoad.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | public partial class LoadBase 4 | { 5 | /// 6 | /// 卸载AssetBundle 7 | /// 8 | public void UnLoad() 9 | { 10 | _assetBundleCreateRequest = null; 11 | AssetBundle.Unload(true); 12 | _loadState = LoadState.NoLoad; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadBaseUnLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a982332d9af84a64ca426f6e4a9dc93d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadDepend.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | /// 4 | /// 一个文件的依赖项 5 | /// 6 | public class LoadDepend : LoadBase 7 | { 8 | public LoadDepend() 9 | { 10 | base.LoadType = LoadType.Depend; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadDepend.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76f25b52667a43c4c979fb524247d8b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadFile.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | /// 4 | /// 一个文件以及它的bundle包信息 5 | /// 6 | public class LoadFile : LoadBase 7 | { 8 | /// 9 | /// 依赖的文件的名字 10 | /// 11 | public string[] DependFileName; 12 | 13 | public LoadFile() 14 | { 15 | base.LoadType = LoadType.File; 16 | } 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadFile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 490041d045a62db44ab1b937e13e34a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadGroup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace BM 4 | { 5 | public class LoadGroup : LoadBase 6 | { 7 | /// 8 | /// 组Bundle里所有资源 9 | /// 10 | public List FilePathList = new List(); 11 | 12 | /// 13 | /// 依赖的文件的名字 14 | /// 15 | public List DependFileName = new List(); 16 | 17 | public LoadGroup() 18 | { 19 | base.LoadType = LoadType.Group; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadGroup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 881c0b5ba1b947e7a62eca100d9fb073 3 | timeCreated: 1652150419 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadHandlerFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace BM 4 | { 5 | internal static class LoadHandlerFactory 6 | { 7 | private static Queue _loadHandlerPool = new Queue(); 8 | 9 | internal static LoadHandler GetLoadHandler(string assetPath, string bundlePackageName, bool haveHandler, bool isPool) 10 | { 11 | LoadHandler loadHandler; 12 | if (_loadHandlerPool.Count > 0 && isPool) 13 | { 14 | loadHandler = _loadHandlerPool.Dequeue(); 15 | loadHandler.Init(assetPath, bundlePackageName, haveHandler); 16 | return loadHandler; 17 | } 18 | loadHandler = CreateLoadHandler(assetPath, bundlePackageName, haveHandler, isPool); 19 | return loadHandler; 20 | } 21 | 22 | private static LoadHandler CreateLoadHandler(string assetPath, string bundlePackageName, bool haveHandler, bool isPool) 23 | { 24 | LoadHandler loadHandler = new LoadHandler(isPool); 25 | loadHandler.Init(assetPath, bundlePackageName, haveHandler); 26 | return loadHandler; 27 | } 28 | 29 | internal static void EnterPool(LoadHandler loadHandler) 30 | { 31 | _loadHandlerPool.Enqueue(loadHandler); 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/LoadHandlerFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e88ab04cd0ba4da1b79b607b6c6dd1a9 3 | timeCreated: 1645772345 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/WebLoadProgress.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.Networking; 2 | 3 | namespace BM 4 | { 5 | public class WebLoadProgress 6 | { 7 | internal UnityWebRequestAsyncOperation WeqOperation; 8 | 9 | internal float GetWebProgress() 10 | { 11 | if (WeqOperation != null) 12 | { 13 | return WeqOperation.progress; 14 | } 15 | return 1; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Base/WebLoadProgress.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b382dc13d34f4070a7092d78f38db368 3 | timeCreated: 1645416366 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/BundleMasterRuntimeConfig.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace BM 4 | { 5 | public class BundleMasterRuntimeConfig : ScriptableObject 6 | { 7 | /// 8 | /// 加载模式 9 | /// 10 | public AssetLoadMode AssetLoadMode; 11 | 12 | /// 13 | /// 最大同时下载的资源数量 14 | /// 15 | public int MaxDownLoadCount; 16 | 17 | /// 18 | /// 下载失败最多重试次数 19 | /// 20 | public int ReDownLoadCount; 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/BundleMasterRuntimeConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d36208e8b0045f7ab3a61f1ab8f60c6 3 | timeCreated: 1646194103 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/BundleRuntimeInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a032270117ba644a810964995ff939b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/DownLoadTask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9077768a5199428299523e931b75f023 3 | timeCreated: 1662541887 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd15fe85bed9fae4899e60985fbc7ef8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/AssetLogHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace BM 5 | { 6 | public static class AssetLogHelper 7 | { 8 | public static void Log(string message) 9 | { 10 | Debug.Log(message); 11 | } 12 | 13 | public static void LogError(string message) 14 | { 15 | Debug.LogError(message); 16 | } 17 | 18 | public static void LogError(Exception e) 19 | { 20 | if (e.Data.Contains("StackTrace")) 21 | { 22 | Debug.LogError($"{e.Data["StackTrace"]}\n{e}"); 23 | return; 24 | } 25 | string str = e.ToString(); 26 | Debug.LogError(str); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/AssetLogHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75702c7e08b16ad43b7788ac77f1b7f9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/DeleteHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace BM 5 | { 6 | public static class DeleteHelper 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/DeleteHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d98308ba11d118d4c9f38f88e374233a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/DownloadBundleHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcd562e187d32bc43aec75868119c377 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/GroupAssetHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace BM 4 | { 5 | public static class GroupAssetHelper 6 | { 7 | /// 8 | /// 判断是否是颗粒化组的文件 9 | /// 10 | /// 组路径 11 | public static string IsGroupAsset(string assetPath, List loadGroupKey) 12 | { 13 | for (int i = 0; i < loadGroupKey.Count; i++) 14 | { 15 | if (assetPath.Contains(loadGroupKey[i])) 16 | { 17 | return loadGroupKey[i]; 18 | } 19 | } 20 | return null; 21 | } 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/GroupAssetHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12910746a7a64e7a80b05b10f1152430 3 | timeCreated: 1652170712 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/HandlerIdHelper.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | public static class HandlerIdHelper 4 | { 5 | private static uint _handlerIdCounter = 0; 6 | 7 | /// 8 | /// 获取唯一ID 9 | /// 10 | /// 11 | public static uint GetUniqueId() 12 | { 13 | _handlerIdCounter++; 14 | return _handlerIdCounter; 15 | } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/HandlerIdHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16374b4a7b524157843e6eac0319aec1 3 | timeCreated: 1645167114 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/PathUnifiedHelper.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | public static class PathUnifiedHelper 4 | { 5 | /// 6 | /// 解决路径资源是否存在的判定问题 7 | /// 8 | public static string UnifiedPath(string path) 9 | { 10 | 11 | #if UNITY_ANDROID && !UNITY_EDITOR 12 | path = path.Replace("\\", "/"); 13 | #elif UNITY_IOS && !UNITY_EDITOR 14 | path = path.Replace("\\", "/"); 15 | #elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX 16 | 17 | #elif UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN 18 | 19 | #endif 20 | return path; 21 | } 22 | 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/PathUnifiedHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77ac34b0b21b09c4ea817ff280acfc44 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/TimeAwaitHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using ET; 3 | 4 | namespace BM 5 | { 6 | public static class TimeAwaitHelper 7 | { 8 | internal static readonly Queue TimerFactoryQueue = new Queue(); 9 | 10 | /// 11 | /// 等待一定时间 12 | /// 13 | /// 单位 秒 14 | /// 异步取消锁 15 | public static ETTask AwaitTime(float time, ETCancellationToken cancellationToken = null) 16 | { 17 | TimerAwait timerAwait; 18 | if (TimerFactoryQueue.Count > 0) 19 | { 20 | timerAwait = TimerFactoryQueue.Dequeue(); 21 | } 22 | else 23 | { 24 | timerAwait = new TimerAwait(); 25 | } 26 | ETTask tcs = ETTask.Create(true); 27 | timerAwait.Init(time, tcs); 28 | cancellationToken?.Add(() => 29 | { 30 | timerAwait.Cancel(); 31 | tcs.SetResult(); 32 | }); 33 | return tcs; 34 | } 35 | } 36 | 37 | 38 | internal class TimerAwait 39 | { 40 | private float remainingTime = 0; 41 | private ETTask tcs; 42 | private bool cancelTimer = false; 43 | 44 | internal void Init(float time, ETTask task) 45 | { 46 | this.remainingTime = time; 47 | this.tcs = task; 48 | AssetComponent.TimerAwaitQueue.Enqueue(this); 49 | cancelTimer = false; 50 | } 51 | 52 | internal bool CalcSubTime(float time) 53 | { 54 | remainingTime -= time; 55 | if (remainingTime > 0) 56 | { 57 | return false; 58 | } 59 | if (!cancelTimer) 60 | { 61 | tcs.SetResult(); 62 | } 63 | tcs = null; 64 | remainingTime = 0; 65 | TimeAwaitHelper.TimerFactoryQueue.Enqueue(this); 66 | return true; 67 | } 68 | 69 | internal void Cancel() 70 | { 71 | cancelTimer = true; 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/TimeAwaitHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 029e5ec69c004c14a659de8f39c3dfc1 3 | timeCreated: 1657779909 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/ValueHelper.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | public static class ValueHelper 4 | { 5 | public static float GetMinValue(float value1, float value2) 6 | { 7 | if (value1 > value2) 8 | { 9 | return value2; 10 | } 11 | return value1; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/ValueHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06352179069a4c09926813e3bb7103d8 3 | timeCreated: 1657613866 -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/Helper/VerifyHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cf5765d850a10d49a3303aa48a18135 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/LoadHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 865e922a06ab0f142bdf8dfe257bbdf1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/LoadHandlerBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe79c94ba7a22f340ab3d847765c3435 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/LoadSceneHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8219f195aff961c43877024966a761e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/BundleMasterRuntime/UpdateBundleDataInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7645b9901dd4f84966f58107816ace6 3 | timeCreated: 1662626212 -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 861d3d7da679f7946b8aa476cf267a8d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLock.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using ET; 3 | 4 | namespace BM 5 | { 6 | public class CoroutineLock : IDisposable 7 | { 8 | private bool _isDispose = false; 9 | private long _key; 10 | private CoroutineLockQueue _coroutineLockQueue; 11 | private ETTask _waitTask; 12 | 13 | internal void Init(long key, CoroutineLockQueue coroutineLockQueue) 14 | { 15 | _isDispose = false; 16 | this._key = key; 17 | this._coroutineLockQueue = coroutineLockQueue; 18 | _waitTask = ETTask.Create(true); 19 | } 20 | 21 | internal void Enable() 22 | { 23 | _waitTask.SetResult(); 24 | } 25 | 26 | internal ETTask Wait() 27 | { 28 | return _waitTask; 29 | } 30 | 31 | 32 | public void Dispose() 33 | { 34 | if (_isDispose) 35 | { 36 | //AssetLogHelper.LogError("协程锁重复释放"); 37 | return; 38 | } 39 | _waitTask = null; 40 | _isDispose = true; 41 | _coroutineLockQueue.CoroutineLockDispose(_key).Coroutine(); 42 | _coroutineLockQueue = null; 43 | CoroutineLockComponent.CoroutineLockQueue.Enqueue(this); 44 | 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLock.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1face1f97ba5c2e46a4a83a05ab5692a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLockComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using ET; 3 | 4 | namespace BM 5 | { 6 | public static class CoroutineLockComponent 7 | { 8 | /// 9 | /// 协程锁类型以及对应的协程锁队列 10 | /// 11 | private static readonly Dictionary CoroutineLockTypeToQueue = new Dictionary(); 12 | 13 | /// 14 | /// 没有用到的CoroutineLock池 15 | /// 16 | internal static readonly Queue CoroutineLockQueue = new Queue(); 17 | 18 | /// 19 | /// 缓存池的池 20 | /// 21 | internal static readonly Queue> CoroutineLockQueuePool = new Queue>(); 22 | 23 | public static async ETTask Wait(CoroutineLockType coroutineLockType, long key) 24 | { 25 | if (!CoroutineLockTypeToQueue.TryGetValue(coroutineLockType, out CoroutineLockQueue coroutineLockQueue)) 26 | { 27 | coroutineLockQueue = new CoroutineLockQueue(coroutineLockType); 28 | CoroutineLockTypeToQueue.Add(coroutineLockType, coroutineLockQueue); 29 | } 30 | //取一个 CoroutineLock 31 | CoroutineLock coroutineLock = coroutineLockQueue.GetCoroutineLock(key); 32 | await coroutineLock.Wait(); 33 | return coroutineLock; 34 | } 35 | 36 | public static void UpDate() 37 | { 38 | for (int i = 0; i < TaskDic.Count; i++) 39 | { 40 | TaskDic[i].SetResult(); 41 | } 42 | TaskDic.Clear(); 43 | } 44 | 45 | private static readonly List TaskDic = new List(); 46 | 47 | /// 48 | /// 等待一个帧循环执行 49 | /// 50 | internal static ETTask WaitTask() 51 | { 52 | ETTask tcs = ETTask.Create(true); 53 | TaskDic.Add(tcs); 54 | return tcs; 55 | } 56 | 57 | } 58 | } 59 | 60 | -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLockComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 392ad57d3dce4574fb790d22f3b3d6dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLockQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6f39550f10c4fdda4263e125ad37ec0 3 | timeCreated: 1658980459 -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLockType.cs: -------------------------------------------------------------------------------- 1 | namespace BM 2 | { 3 | public enum CoroutineLockType 4 | { 5 | /// 6 | /// BundleMaster资源加载用的标识符 7 | /// 8 | BundleMaster = 0, 9 | 10 | } 11 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/CoroutineLockType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d020d7a93ab04b6da8b4a54fb45afe3d 3 | timeCreated: 1658999625 -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/LoadPathConvertHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace BM 4 | { 5 | /// 6 | /// 负责将加载路径转化为唯一的long key 7 | /// 8 | public class LoadPathConvertHelper 9 | { 10 | /// 11 | /// 初始值 12 | /// 13 | private static long _originKey = 0; 14 | 15 | private static readonly Dictionary LoadPathToKey = new Dictionary(); 16 | 17 | public static long LoadPathConvert(string loadPath) 18 | { 19 | if (LoadPathToKey.TryGetValue(loadPath, out long key)) 20 | { 21 | return key; 22 | } 23 | _originKey++; 24 | key = _originKey; 25 | LoadPathToKey.Add(loadPath, key); 26 | return key; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/CoroutineLock/LoadPathConvertHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4023e2f279184419931f94a54492a66a 3 | timeCreated: 1674504106 -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f860bee79ec34047aa5dcea5e89f43d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncETTaskCompletedMethodBuilder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.CompilerServices; 4 | using System.Security; 5 | 6 | namespace ET 7 | { 8 | public struct AsyncETTaskCompletedMethodBuilder 9 | { 10 | // 1. Static Create method. 11 | [DebuggerHidden] 12 | public static AsyncETTaskCompletedMethodBuilder Create() 13 | { 14 | AsyncETTaskCompletedMethodBuilder builder = new AsyncETTaskCompletedMethodBuilder(); 15 | return builder; 16 | } 17 | 18 | // 2. TaskLike Task property(void) 19 | public ETTaskCompleted Task => default; 20 | 21 | // 3. SetException 22 | [DebuggerHidden] 23 | public void SetException(Exception e) 24 | { 25 | ETTask.ExceptionHandler.Invoke(e); 26 | } 27 | 28 | // 4. SetResult 29 | [DebuggerHidden] 30 | public void SetResult() 31 | { 32 | // do nothing 33 | } 34 | 35 | // 5. AwaitOnCompleted 36 | [DebuggerHidden] 37 | public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine 38 | { 39 | awaiter.OnCompleted(stateMachine.MoveNext); 40 | } 41 | 42 | // 6. AwaitUnsafeOnCompleted 43 | [DebuggerHidden] 44 | [SecuritySafeCritical] 45 | public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine 46 | { 47 | awaiter.UnsafeOnCompleted(stateMachine.MoveNext); 48 | } 49 | 50 | // 7. Start 51 | [DebuggerHidden] 52 | public void Start(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine 53 | { 54 | stateMachine.MoveNext(); 55 | } 56 | 57 | // 8. SetStateMachine 58 | [DebuggerHidden] 59 | public void SetStateMachine(IAsyncStateMachine stateMachine) 60 | { 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncETTaskCompletedMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d6ac33daa469ca45887c72cceecbede 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncETTaskMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a8e9bacaaf0be24c93b6058f5934800 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncETVoidMethodBuilder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.CompilerServices; 4 | using System.Security; 5 | 6 | namespace ET 7 | { 8 | internal struct AsyncETVoidMethodBuilder 9 | { 10 | // 1. Static Create method. 11 | [DebuggerHidden] 12 | public static AsyncETVoidMethodBuilder Create() 13 | { 14 | AsyncETVoidMethodBuilder builder = new AsyncETVoidMethodBuilder(); 15 | return builder; 16 | } 17 | 18 | // 2. TaskLike Task property(void) 19 | [DebuggerHidden] 20 | public ETVoid Task => default; 21 | 22 | // 3. SetException 23 | [DebuggerHidden] 24 | public void SetException(Exception e) 25 | { 26 | ETTask.ExceptionHandler.Invoke(e); 27 | } 28 | 29 | // 4. SetResult 30 | [DebuggerHidden] 31 | public void SetResult() 32 | { 33 | // do nothing 34 | } 35 | 36 | // 5. AwaitOnCompleted 37 | [DebuggerHidden] 38 | public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine 39 | { 40 | awaiter.OnCompleted(stateMachine.MoveNext); 41 | } 42 | 43 | // 6. AwaitUnsafeOnCompleted 44 | [DebuggerHidden] 45 | [SecuritySafeCritical] 46 | public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine 47 | { 48 | awaiter.UnsafeOnCompleted(stateMachine.MoveNext); 49 | } 50 | 51 | // 7. Start 52 | [DebuggerHidden] 53 | public void Start(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine 54 | { 55 | stateMachine.MoveNext(); 56 | } 57 | 58 | // 8. SetStateMachine 59 | [DebuggerHidden] 60 | public void SetStateMachine(IAsyncStateMachine stateMachine) 61 | { 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncETVoidMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b9889db51c24c7449920952033f94e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncMethodBuilderAttribute.cs: -------------------------------------------------------------------------------- 1 | namespace System.Runtime.CompilerServices 2 | { 3 | public sealed class AsyncMethodBuilderAttribute: Attribute 4 | { 5 | public Type BuilderType 6 | { 7 | get; 8 | } 9 | 10 | public AsyncMethodBuilderAttribute(Type builderType) 11 | { 12 | BuilderType = builderType; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/AsyncMethodBuilderAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2c6390211c592b4b8ce4c3f2d4cfe60 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETCancellationToken.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace ET 5 | { 6 | public class ETCancellationToken 7 | { 8 | private HashSet actions = new HashSet(); 9 | 10 | public void Add(Action callback) 11 | { 12 | // 如果action是null,绝对不能添加,要抛异常,说明有协程泄漏 13 | this.actions.Add(callback); 14 | } 15 | 16 | public void Remove(Action callback) 17 | { 18 | this.actions?.Remove(callback); 19 | } 20 | 21 | public bool IsCancel() 22 | { 23 | return this.actions == null; 24 | } 25 | 26 | public void Cancel() 27 | { 28 | if (this.actions == null) 29 | { 30 | return; 31 | } 32 | 33 | this.Invoke(); 34 | } 35 | 36 | private void Invoke() 37 | { 38 | HashSet runActions = this.actions; 39 | this.actions = null; 40 | try 41 | { 42 | foreach (Action action in runActions) 43 | { 44 | action.Invoke(); 45 | } 46 | } 47 | catch (Exception e) 48 | { 49 | ETTask.ExceptionHandler.Invoke(e); 50 | } 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETCancellationToken.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a10a04dc8627887459cee396e5ce2637 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETTask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21ecfda44dd96ce4782a05780c119f5d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETTaskCompleted.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.CompilerServices; 4 | 5 | namespace ET 6 | { 7 | [AsyncMethodBuilder(typeof (AsyncETTaskCompletedMethodBuilder))] 8 | public struct ETTaskCompleted: ICriticalNotifyCompletion 9 | { 10 | [DebuggerHidden] 11 | public ETTaskCompleted GetAwaiter() 12 | { 13 | return this; 14 | } 15 | 16 | [DebuggerHidden] 17 | public bool IsCompleted => true; 18 | 19 | [DebuggerHidden] 20 | public void GetResult() 21 | { 22 | } 23 | 24 | [DebuggerHidden] 25 | public void OnCompleted(Action continuation) 26 | { 27 | } 28 | 29 | [DebuggerHidden] 30 | public void UnsafeOnCompleted(Action continuation) 31 | { 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETTaskCompleted.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee92d3c3c00b55e4b973b276a28f6578 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETTaskHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1311998197e0dcb409703f88338ae5a8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETVoid.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.CompilerServices; 4 | 5 | namespace ET 6 | { 7 | [AsyncMethodBuilder(typeof (AsyncETVoidMethodBuilder))] 8 | internal struct ETVoid: ICriticalNotifyCompletion 9 | { 10 | [DebuggerHidden] 11 | public void Coroutine() 12 | { 13 | } 14 | 15 | [DebuggerHidden] 16 | public bool IsCompleted => true; 17 | 18 | [DebuggerHidden] 19 | public void OnCompleted(Action continuation) 20 | { 21 | } 22 | 23 | [DebuggerHidden] 24 | public void UnsafeOnCompleted(Action continuation) 25 | { 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/ETVoid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 177dc9b31e0748743b0beadd9b4f31b8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/IAwaiter.cs: -------------------------------------------------------------------------------- 1 | namespace ET 2 | { 3 | public enum AwaiterStatus: byte 4 | { 5 | /// The operation has not yet completed. 6 | Pending = 0, 7 | 8 | /// The operation completed successfully. 9 | Succeeded = 1, 10 | 11 | /// The operation completed with an error. 12 | Faulted = 2, 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/ETTaskAsync/IAwaiter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62411233841138840b2fe15c09f599f1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7322561220194989bcb5f44750fbe5ab 3 | timeCreated: 1662446762 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/BundleMaster.LMTD.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BundleMaster.LMTD", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Android", 7 | "Editor", 8 | "iOS", 9 | "LinuxStandalone64", 10 | "macOSStandalone", 11 | "Switch", 12 | "WindowsStandalone32", 13 | "WindowsStandalone64" 14 | ], 15 | "excludePlatforms": [], 16 | "allowUnsafeCode": false, 17 | "overrideReferences": false, 18 | "precompiledReferences": [], 19 | "autoReferenced": true, 20 | "defineConstraints": [], 21 | "versionDefines": [], 22 | "noEngineReferences": false 23 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/BundleMaster.LMTD.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bc86b810ed97834e8d5d8df82632a59 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/ILiteThreadAction.cs: -------------------------------------------------------------------------------- 1 | namespace LMTD 2 | { 3 | public interface ILiteThreadAction 4 | { 5 | public void Logic(); 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/ILiteThreadAction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30aad84679ef4fd6b1e309ff810fde00 3 | timeCreated: 1662454329 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LMTDProxy.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Net; 3 | 4 | namespace LMTD 5 | { 6 | public class LMTDProxy 7 | { 8 | private static readonly object LockObj = new object(); 9 | private static WebProxy _proxy = null; 10 | 11 | public static WebProxy GetProxy() 12 | { 13 | lock (LockObj) 14 | { 15 | _proxy = new WebProxy(); 16 | return _proxy; 17 | } 18 | } 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LMTDProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecab75a88b4a4b5ebc4f01005b51f336 3 | timeCreated: 1663051977 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LMTDownLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d600092c90b49e493dc254e6f6aa2a9 3 | timeCreated: 1662455587 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LiteThread.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Threading; 4 | 5 | namespace LMTD 6 | { 7 | internal class LiteThread 8 | { 9 | private readonly Thread thread; 10 | private ILiteThreadAction _liteThreadAction = null; 11 | 12 | internal LiteThread() 13 | { 14 | ThreadFactory.ThreadCount++; 15 | thread = new Thread(Run); 16 | thread.Start(); 17 | } 18 | 19 | internal void Action(ILiteThreadAction liteThreadAction) 20 | { 21 | this._liteThreadAction = liteThreadAction; 22 | } 23 | 24 | private void Run() 25 | { 26 | while (!ThreadFactory.RecoverKey) 27 | { 28 | Thread.Sleep(1); 29 | if (_liteThreadAction != null) 30 | { 31 | _liteThreadAction.Logic(); 32 | _liteThreadAction = null; 33 | lock (ThreadFactory.ThreadPool) 34 | { 35 | //执行完逻辑后自己进池 36 | ThreadFactory.ThreadPool.Enqueue(this); 37 | } 38 | } 39 | 40 | } 41 | Recovery(); 42 | } 43 | 44 | /// 45 | /// 回收这个线程 46 | /// 47 | internal void Recovery() 48 | { 49 | ThreadFactory.ThreadCount--; 50 | thread.Abort(); 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LiteThread.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5d28b1915fd440c84403836c77a6cc6 3 | timeCreated: 1662447210 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/LmtdTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cebe13fdda26498a9f14e005767877ec 3 | timeCreated: 1662542666 -------------------------------------------------------------------------------- /Assets/BundleMaster/LiteMultiThreadDownLoad/ThreadFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d3bbedacc454abda04916d59e4d5cea 3 | timeCreated: 1662446923 -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f8d016bd568dd84fbb42f745749c331 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/AssetComponentInit_Nintendo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f77a9e256b59c3949a5eab955f147d52 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/AssetComponentTools_Nintendo.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Text; 3 | using ET; 4 | 5 | namespace BM 6 | { 7 | #if Nintendo_Switch 8 | public static partial class AssetComponent 9 | { 10 | /// 11 | /// NintendoSwitch获取Bundle信息文件的路径 12 | /// 13 | internal static string BundleFileExistPath_Nintendo(string bundlePackageName, string fileName) 14 | { 15 | string path = Path.Combine(AssetComponentConfig.LocalBundlePath, bundlePackageName, fileName); 16 | //string path = "rom:/Data/StreamingAssets/" + bundlePackageName + "/" + fileName; 17 | return path; 18 | } 19 | 20 | internal static async ETTask LoadNintendoFileText(string filePath) 21 | { 22 | nn.fs.FileHandle fileHandle = new nn.fs.FileHandle(); 23 | nn.fs.EntryType entryType = nn.fs.EntryType.File; 24 | 25 | nn.Result result = nn.fs.FileSystem.GetEntryType(ref entryType, filePath); 26 | if (nn.fs.FileSystem.ResultPathNotFound.Includes(result)) 27 | { 28 | AssetLogHelper.LogError("初始化分包未找到要读取的文件: \t" + filePath); 29 | result.abortUnlessSuccess(); 30 | return ""; 31 | } 32 | result.abortUnlessSuccess(); 33 | 34 | 35 | result = nn.fs.File.Open(ref fileHandle, filePath, nn.fs.OpenFileMode.Read); 36 | result.abortUnlessSuccess(); 37 | 38 | long fileSize = 0; 39 | result = nn.fs.File.GetSize(ref fileSize, fileHandle); 40 | result.abortUnlessSuccess(); 41 | 42 | byte[] data = new byte[fileSize]; 43 | result = nn.fs.File.Read(fileHandle, 0, data, fileSize); 44 | result.abortUnlessSuccess(); 45 | 46 | nn.fs.File.Close(fileHandle); 47 | 48 | MemoryStream memoryStream = new MemoryStream(data); 49 | StreamReader streamReader = new StreamReader(memoryStream); 50 | 51 | //异步读取内容 52 | string str = await streamReader.ReadToEndAsync(); 53 | 54 | //关闭引用 55 | streamReader.Close(); 56 | streamReader.Dispose(); 57 | memoryStream.Close(); 58 | await memoryStream.DisposeAsync(); 59 | 60 | return str; 61 | } 62 | 63 | 64 | } 65 | #endif 66 | } 67 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/AssetComponentTools_Nintendo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b5b3c4664b7b8449ba23d80794613f9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/AssetComponentUpdate_Nintendo.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using ET; 3 | 4 | namespace BM 5 | { 6 | public static partial class AssetComponent 7 | { 8 | #if Nintendo_Switch 9 | /// 10 | /// 检查分包是否需要更新 11 | /// 12 | /// 所有分包的名称以及是否验证文件CRC 13 | #pragma warning disable CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 14 | public static async ETTask CheckAllBundlePackageUpdate(Dictionary bundlePackageNames) 15 | #pragma warning restore CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 16 | { 17 | UpdateBundleDataInfo updateBundleDataInfo = new UpdateBundleDataInfo(); 18 | updateBundleDataInfo.NeedUpdate = false; 19 | 20 | if (AssetComponentConfig.AssetLoadMode != AssetLoadMode.Build) 21 | { 22 | if (AssetComponentConfig.AssetLoadMode == AssetLoadMode.Local) 23 | { 24 | AssetComponentConfig.HotfixPath = AssetComponentConfig.LocalBundlePath; 25 | } 26 | else 27 | { 28 | #if !UNITY_EDITOR 29 | AssetLogHelper.LogError("AssetLoadMode = AssetLoadMode.Develop 只能在编辑器下运行"); 30 | #endif 31 | } 32 | } 33 | else 34 | { 35 | AssetLogHelper.LogError("AssetLoadMode = AssetLoadMode.Build Nintendo_Switch无需更新,请用Local模式"); 36 | } 37 | return updateBundleDataInfo; 38 | } 39 | 40 | /// 41 | /// 下载更新 42 | /// 43 | #pragma warning disable CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 44 | public static async ETTask DownLoadUpdate(UpdateBundleDataInfo updateBundleDataInfo) 45 | #pragma warning restore CS1998 // 异步方法缺少 "await" 运算符,将以同步方式运行 46 | { 47 | AssetLogHelper.LogError("Nintendo_Switch无需更新"); 48 | } 49 | 50 | #endif 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/AssetComponentUpdate_Nintendo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5187444ef7525449a5f11dfbeb13736 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/BundleMaster/NintendoAdapter/LoadBaseRuntimeLoad_Nintendo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c4e88afca5588b4caa595d9d0ec11d9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Bundles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1183708c5c26b1142b814ba9100f6bd8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/Atlas.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0899af838686634d90889d74b699d34 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/Atlas/UISpriteAtlas.spriteatlas: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!687078895 &4343727234628468602 4 | SpriteAtlas: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: UISpriteAtlas 10 | m_EditorData: 11 | serializedVersion: 2 12 | textureSettings: 13 | serializedVersion: 2 14 | anisoLevel: 1 15 | compressionQuality: 50 16 | maxTextureSize: 2048 17 | textureCompression: 0 18 | filterMode: 1 19 | generateMipMaps: 0 20 | readable: 0 21 | crunchedCompression: 0 22 | sRGB: 1 23 | platformSettings: [] 24 | packingSettings: 25 | serializedVersion: 2 26 | padding: 4 27 | blockOffset: 1 28 | allowAlphaSplitting: 0 29 | enableRotation: 1 30 | enableTightPacking: 1 31 | enableAlphaDilation: 0 32 | secondaryTextureSettings: {} 33 | variantMultiplier: 1 34 | packables: 35 | - {fileID: 102900000, guid: ab72b9aab6d433d4a933c0144ef47019, type: 3} 36 | bindAsDefault: 1 37 | isAtlasV2: 0 38 | cachedData: {fileID: 0} 39 | m_MasterAtlas: {fileID: 0} 40 | m_PackedSprites: 41 | - {fileID: 21300000, guid: 2ef022e80b631b648b4472b3202420be, type: 3} 42 | - {fileID: 21300000, guid: 5f7b56a9f3973fe4390a25f83ce2093a, type: 3} 43 | - {fileID: 21300000, guid: c267c01dc77bbe344afce6eafde03632, type: 3} 44 | m_PackedSpriteNamesToIndex: 45 | - 91logo 46 | - xjj 47 | - LoginBG 48 | m_RenderDataMap: {} 49 | m_Tag: UISpriteAtlas 50 | m_IsVariant: 0 51 | -------------------------------------------------------------------------------- /Assets/Bundles/Atlas/UISpriteAtlas.spriteatlas.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5dea1db6f5daae4fae2638a91a7b9d3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4343727234628468602 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/GroupBundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b17629b70d843042b24847d4e71f39e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/GroupBundle/bds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Bundles/GroupBundle/bds.png -------------------------------------------------------------------------------- /Assets/Bundles/GroupBundle/ylzy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Bundles/GroupBundle/ylzy.jpg -------------------------------------------------------------------------------- /Assets/Bundles/GroupBundle/zfnp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Bundles/GroupBundle/zfnp.jpg -------------------------------------------------------------------------------- /Assets/Bundles/LoginUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2daaec0b7dc93e245982c86c71b00ed1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Bundles/ResetUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3a8da88b8614aa4a81de0863ef0fec2 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Bundles/ShaderVariants.shadervariants: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!200 &20000000 4 | ShaderVariantCollection: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: ShaderVariants 10 | m_Shaders: 11 | - first: {fileID: 4800000, guid: 7da2349deca246042a03c5d4841d117c, type: 3} 12 | second: 13 | variants: 14 | - keywords: 15 | passType: 0 16 | - keywords: FOG_LINEAR 17 | passType: 0 18 | - keywords: FOG_EXP 19 | passType: 0 20 | - keywords: FOG_EXP2 21 | passType: 0 22 | -------------------------------------------------------------------------------- /Assets/Bundles/ShaderVariants.shadervariants.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73d2ed6625c8bc640a5af74fb2b0a8c2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 20000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/SubBundleAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce891db69f7df4143a54c71d895d0f95 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Bundles/SubBundleAssets/SubUI_Copy.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ebdb48acdf1cd2478cae46f1ea2c18b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Bundles/SubBundleAssets/mister91jiao.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6de392dc803d65148b14472b6700df88 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Bundles/SubUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bdd455578ce1aa4fb09249332fd0a51 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Bundles/car.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Bundles/car.mp4 -------------------------------------------------------------------------------- /Assets/Bundles/car.mp4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbe03c83009884b47a06a4b596e3fe53 3 | VideoClipImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | frameRange: 0 7 | startFrame: -1 8 | endFrame: -1 9 | colorSpace: 0 10 | deinterlace: 0 11 | encodeAlpha: 0 12 | flipVertical: 0 13 | flipHorizontal: 0 14 | importAudio: 1 15 | targetSettings: {} 16 | userData: 17 | assetBundleName: 18 | assetBundleVariant: 19 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56c4a8acd12af0244ae5b7c7de915b2f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39f9902d99705454594abc029e8e6bbf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetLoadTable.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using UnityEditor; 4 | using UnityEngine; 5 | using UnityEngine.Serialization; 6 | 7 | namespace BM 8 | { 9 | /// 10 | /// 用于配置所有分包的构建信息 11 | /// 12 | public class AssetLoadTable : ScriptableObject 13 | { 14 | [Header("相对构建路径文件夹名称")] 15 | [Tooltip("构建的资源的相对路径(Assets同级目录下的路径)")] 16 | public string BundlePath = "BuildBundles"; 17 | 18 | [Header("是否启用绝对构建路径")] 19 | [Tooltip("启用后使用绝对路径")] 20 | public bool EnableRelativePath = false; 21 | 22 | [Header("绝对路径")] 23 | [Tooltip("自己填的绝对路径,替换掉Assets同级路径")] 24 | public string RelativePath = ""; 25 | 26 | [Header("加密资源文件夹名称")] 27 | [Tooltip("加密的资源所在的和普通资源同级路径的文件夹名称")] 28 | public string EncryptPathFolder = "EncryptAssets"; 29 | 30 | [Header("初始场景")] 31 | [Tooltip("最后不打Bundle直接打进包体里的场景(Scene In Build 里填的场景)")] 32 | public List InitScene = new List(); 33 | 34 | [Header("是否生成路径字段代码脚本")] 35 | [Tooltip("字段匹配路径")] 36 | public bool GeneratePathCode = false; 37 | 38 | [Header("相对构建路径文件夹名称")] 39 | [Tooltip("构建的资源的相对路径(Assets同级目录下的路径)")] 40 | public string GenerateCodeScriptPath = ""; 41 | 42 | /// 43 | /// 返回打包路径 44 | /// 45 | public string BuildBundlePath 46 | { 47 | get 48 | { 49 | if (EnableRelativePath) 50 | { 51 | return Path.Combine(RelativePath, BundlePath); 52 | } 53 | string path = Path.Combine(Application.dataPath + "/../", BundlePath); 54 | DirectoryInfo info; 55 | if (!Directory.Exists(path)) 56 | { 57 | info = Directory.CreateDirectory(path); 58 | } 59 | else 60 | { 61 | info = new DirectoryInfo(path); 62 | } 63 | return info.FullName; 64 | } 65 | } 66 | 67 | [FormerlySerializedAs("AssetsLoadSettings")] 68 | [Header("所有分包配置信息")] 69 | [Tooltip("每一个分包的配置信息")] 70 | public List AssetsSettings = new List(); 71 | } 72 | } -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetLoadTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75e5af2c46a19fb47a6519fd027a3505 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsLoadSetting.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace BM 6 | { 7 | /// 8 | /// 用于配置单个Bundle包的构建信息 9 | /// 10 | public class AssetsLoadSetting : AssetsSetting 11 | { 12 | [Header("分包名字")] 13 | [Tooltip("当前分包的包名(建议英文)")] public string BuildName; 14 | 15 | [Header("版本索引")] 16 | [Tooltip("表示当前Bundle的索引")] public int BuildIndex; 17 | 18 | [Header("AssetBundle的后缀")] 19 | [Tooltip("AssetBundle资源的的后缀名(如'bundle')")] public string BundleVariant; 20 | 21 | [Header("是否启用Hash名")] 22 | [Tooltip("是否使用Hash名替换Bundle名称")] public bool NameByHash; 23 | 24 | [Header("构建选项")] 25 | public BuildAssetBundleOptions BuildAssetBundleOptions = BuildAssetBundleOptions.UncompressedAssetBundle; 26 | 27 | #if !(Nintendo_Switch || BMWebGL) 28 | [Header("是否加密资源")] 29 | [Tooltip("加密启用后会多一步异或操作")] public bool EncryptAssets; 30 | 31 | [Header("加密密钥")] 32 | [Tooltip("进行异或操作的密钥")] public string SecretKey; 33 | #endif 34 | 35 | [Header("资源路径")] 36 | [Tooltip("需要打包的资源所在的路径(不需要包含依赖, 只包括需要主动加载的资源)")] 37 | public List AssetPath = new List(); 38 | 39 | [Header("一组资源路径")] 40 | [Tooltip("资源颗粒控制")] 41 | public List AssetGroupPaths = new List(); 42 | 43 | [Header("场景资源")] 44 | [Tooltip("需要通过Bundle加载的场景")] 45 | public List Scene = new List(); 46 | 47 | } 48 | } 49 | 50 | 51 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsLoadSetting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f4acba0d04dbe4439552cc1b0163041 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsOriginSetting.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace BM 6 | { 7 | /// 8 | /// 用于配置原生资源的更新 9 | /// 10 | public class AssetsOriginSetting : AssetsSetting 11 | { 12 | [Header("原生资源分包名字")] 13 | [Tooltip("原生资源的分包名(建议英文)")] public string BuildName; 14 | 15 | [Header("版本索引")] 16 | [Tooltip("表示当前原生的索引")] public int BuildIndex; 17 | 18 | [Header("资源路径")] 19 | [Tooltip("需要打包的资源所在的路径(不需要包含依赖, 只包括需要主动加载的资源)")] 20 | public string OriginFilePath = ""; 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsOriginSetting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 838a5fafa3ac4dd6a2d37b1fc3154ab2 3 | timeCreated: 1647933902 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsSetting.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace BM 4 | { 5 | public class AssetsSetting : ScriptableObject 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/AssetsSetting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee8c0e8b1f734f7bb49671553e2419c8 3 | timeCreated: 1647934382 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildAssets.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 703aec3f8bd7d2f4393659ba9602da77 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildAssetsTools.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8e20bc5ca9673246bcecc414ef1eabc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e48b8b6c215ad2e4db7df0314cb6a255 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetLoadTable.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 75e5af2c46a19fb47a6519fd027a3505, type: 3} 13 | m_Name: AssetLoadTable 14 | m_EditorClassIdentifier: 15 | BundlePath: BuildBundles 16 | EnableRelativePath: 0 17 | RelativePath: G:\UnityProject\Download 18 | EncryptPathFolder: EncryptAssets 19 | InitScene: 20 | - {fileID: 102900000, guid: 9fc0d4010bbf28b4594072e72b8655ab, type: 3} 21 | - {fileID: 102900000, guid: 56e8291126294654b89f23a1d708abd7, type: 3} 22 | GeneratePathCode: 0 23 | GenerateCodeScriptPath: Scripts 24 | AssetsSettings: 25 | - {fileID: 11400000, guid: 16487b58a96f3cb49831b2b0f3d089d2, type: 2} 26 | - {fileID: 11400000, guid: 3a33b62bd85398649adfde01acf447f9, type: 2} 27 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetLoadTable.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131f408fd0d51284798e39dbb89a926d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsLoadSetting_0.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 8f4acba0d04dbe4439552cc1b0163041, type: 3} 13 | m_Name: AssetsLoadSetting_0 14 | m_EditorClassIdentifier: 15 | BuildName: AllBundle 16 | BuildIndex: 1 17 | BundleVariant: bundle 18 | NameByHash: 0 19 | BuildAssetBundleOptions: 768 20 | AssetPath: 21 | - Assets/Bundles 22 | - Assets/Res/UI 23 | AssetGroupPaths: 24 | - Assets/Bundles/GroupBundle 25 | - Assets/Res/UI 26 | Scene: 27 | - {fileID: 102900000, guid: 60c0b125629d7e9449419d1f97aec16c, type: 3} 28 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsLoadSetting_0.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16487b58a96f3cb49831b2b0f3d089d2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsLoadSetting_1.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 8f4acba0d04dbe4439552cc1b0163041, type: 3} 13 | m_Name: AssetsLoadSetting_1 14 | m_EditorClassIdentifier: 15 | BuildName: SubBundle 16 | BuildIndex: 1 17 | BundleVariant: bundle 18 | NameByHash: 0 19 | BuildAssetBundleOptions: 1 20 | AssetPath: 21 | - Assets/Bundles/SubBundleAssets 22 | AssetGroupPaths: [] 23 | Scene: [] 24 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsLoadSetting_1.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a33b62bd85398649adfde01acf447f9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsOriginSetting_0.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 838a5fafa3ac4dd6a2d37b1fc3154ab2, type: 3} 13 | m_Name: AssetsOriginSetting_0 14 | m_EditorClassIdentifier: 15 | BuildName: APK 16 | BuildIndex: 0 17 | OriginFilePath: G:\BM_APK_Install_2\launcher\release 18 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BuildSettings/AssetsOriginSetting_0.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7864a3de00b6f7e409b8d6050575dab9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleMasterInterface.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ba63136b22144c69cfb6856b63170c9 3 | timeCreated: 1646189307 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleMasterInterface/BundleMasterAssetsLoadWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 391376d25a1f4eb691a4199d586f91d3 3 | timeCreated: 1647935762 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleMasterInterface/BundleMasterMainWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 082620919ac84a1ca40ccb99560df118 3 | timeCreated: 1648522782 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleMasterInterface/BundleMasterOriginLoadWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ef5441703147ed9e6cfc72fac05aff 3 | timeCreated: 1648523057 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleMasterInterface/BundleMasterWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00ce726690c349fdad4538404efbe3e8 3 | timeCreated: 1646189354 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/BundleUsefulTool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f06d518f531143258c60df1ba0d467bd 3 | timeCreated: 1673993153 -------------------------------------------------------------------------------- /Assets/Editor/BundleMasterEditor/DevelopSceneChange.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9bee954f9b0a49a3a3973e55387ac5cb 3 | timeCreated: 1644921415 -------------------------------------------------------------------------------- /Assets/NintendoSDKPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3124430301af1b54e806fa3296ee4447 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/NintendoSDKPlugin/Unity.NintendoSDK.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Unity.NintendoSDK", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Editor", 7 | "Switch" 8 | ], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } -------------------------------------------------------------------------------- /Assets/NintendoSDKPlugin/Unity.NintendoSDK.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf72940284cbbb5479c28a3e039c34f6 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Res.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be904fd92a06cb54f8e632f25ca84154 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8040aa6a94db80439092e84622c3b42 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/DefMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 665fa0086b75dd44a9c21578c1e13687 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/logoMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7b0f083f777c994c92a7aea5aa0a59a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_0.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: obj_0 11 | m_Shader: {fileID: 4800000, guid: 7da2349deca246042a03c5d4841d117c, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _MainTex: 23 | m_Texture: {fileID: 2800000, guid: c7d302dfe8943e747a558df48c66a58f, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | m_Floats: [] 27 | m_Colors: [] 28 | m_BuildTextureStacks: [] 29 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_0.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4b7c70cfe0efea40919d64440d1bd6b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_1.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: obj_1 11 | m_Shader: {fileID: 4800000, guid: 7da2349deca246042a03c5d4841d117c, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _MainTex: 23 | m_Texture: {fileID: 2800000, guid: 95fa8d749004ded469984a393351552b, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | m_Floats: [] 27 | m_Colors: [] 28 | m_BuildTextureStacks: [] 29 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33f089626b7a7f84b9a017e1694c9d9b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_2.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: obj_2 11 | m_Shader: {fileID: 4800000, guid: 7da2349deca246042a03c5d4841d117c, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _MainTex: 23 | m_Texture: {fileID: 2800000, guid: 05809ed2a2195484fa30963a2cc91d74, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | m_Floats: [] 27 | m_Colors: [] 28 | m_BuildTextureStacks: [] 29 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 854d4afc4ad9bcd4380051b874b0fbb9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_3.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: obj_3 11 | m_Shader: {fileID: 4800000, guid: 7da2349deca246042a03c5d4841d117c, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _MainTex: 23 | m_Texture: {fileID: 2800000, guid: 94a3f9071cc8a6444aeb6267ea98f044, type: 3} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | m_Floats: [] 27 | m_Colors: [] 28 | m_BuildTextureStacks: [] 29 | -------------------------------------------------------------------------------- /Assets/Res/Mat/obj_3.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0f338a2b51cf084faf3788974d8e015 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d55a49055d7b6b4459ad742cd40ceebc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Shader/Loli.shader: -------------------------------------------------------------------------------- 1 | Shader "Coustom/Loli" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Texture", 2D) = "white" {} 6 | } 7 | SubShader 8 | { 9 | Tags { "RenderType"="Opaque" } 10 | LOD 100 11 | 12 | Pass 13 | { 14 | CGPROGRAM 15 | #pragma vertex vert 16 | #pragma fragment frag 17 | // make fog work 18 | #pragma multi_compile_fog 19 | 20 | #include "UnityCG.cginc" 21 | 22 | struct appdata 23 | { 24 | float4 vertex : POSITION; 25 | float2 uv : TEXCOORD0; 26 | }; 27 | 28 | struct v2f 29 | { 30 | float2 uv : TEXCOORD0; 31 | UNITY_FOG_COORDS(1) 32 | float4 vertex : SV_POSITION; 33 | }; 34 | 35 | sampler2D _MainTex; 36 | float4 _MainTex_ST; 37 | 38 | v2f vert (appdata v) 39 | { 40 | v2f o; 41 | o.vertex = UnityObjectToClipPos(v.vertex); 42 | o.uv = TRANSFORM_TEX(v.uv, _MainTex); 43 | UNITY_TRANSFER_FOG(o,o.vertex); 44 | return o; 45 | } 46 | 47 | fixed4 frag (v2f i) : SV_Target 48 | { 49 | // sample the texture 50 | fixed4 col = tex2D(_MainTex, i.uv); 51 | // apply fog 52 | UNITY_APPLY_FOG(i.fogCoord, col); 53 | return col; 54 | } 55 | ENDCG 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Res/Shader/Loli.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7da2349deca246042a03c5d4841d117c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Res/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0675cf6f227705449ae185093c852f35 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/Texture/obj_0.jpg -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_0.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7d302dfe8943e747a558df48c66a58f 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 0 39 | wrapV: 0 40 | wrapW: 0 41 | nPOTScale: 1 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 0 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 0 54 | spriteTessellationDetail: -1 55 | textureType: 0 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | spriteSheet: 79 | serializedVersion: 2 80 | sprites: [] 81 | outline: [] 82 | physicsShape: [] 83 | bones: [] 84 | spriteID: 85 | internalID: 0 86 | vertices: [] 87 | indices: 88 | edges: [] 89 | weights: [] 90 | secondaryTextures: [] 91 | spritePackingTag: 92 | pSDRemoveMatte: 0 93 | pSDShowRemoveMatteOption: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/Texture/obj_1.jpg -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_1.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95fa8d749004ded469984a393351552b 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 0 39 | wrapV: 0 40 | wrapW: 0 41 | nPOTScale: 1 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 0 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 0 54 | spriteTessellationDetail: -1 55 | textureType: 0 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | spriteSheet: 79 | serializedVersion: 2 80 | sprites: [] 81 | outline: [] 82 | physicsShape: [] 83 | bones: [] 84 | spriteID: 85 | internalID: 0 86 | vertices: [] 87 | indices: 88 | edges: [] 89 | weights: [] 90 | secondaryTextures: [] 91 | spritePackingTag: 92 | pSDRemoveMatte: 0 93 | pSDShowRemoveMatteOption: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/Texture/obj_2.jpg -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_2.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05809ed2a2195484fa30963a2cc91d74 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: 1 36 | aniso: 1 37 | mipBias: 0 38 | wrapU: 0 39 | wrapV: 0 40 | wrapW: 0 41 | nPOTScale: 1 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 0 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 0 54 | spriteTessellationDetail: -1 55 | textureType: 0 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 1 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | spriteSheet: 79 | serializedVersion: 2 80 | sprites: [] 81 | outline: [] 82 | physicsShape: [] 83 | bones: [] 84 | spriteID: 85 | internalID: 0 86 | vertices: [] 87 | indices: 88 | edges: [] 89 | weights: [] 90 | secondaryTextures: [] 91 | spritePackingTag: 92 | pSDRemoveMatte: 0 93 | pSDShowRemoveMatteOption: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Assets/Res/Texture/obj_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/Texture/obj_3.jpg -------------------------------------------------------------------------------- /Assets/Res/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab72b9aab6d433d4a933c0144ef47019 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Res/UI/91logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/UI/91logo.png -------------------------------------------------------------------------------- /Assets/Res/UI/LoginBG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/UI/LoginBG.jpg -------------------------------------------------------------------------------- /Assets/Res/UI/xjj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/UI/xjj.jpg -------------------------------------------------------------------------------- /Assets/Res/yahei.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Res/yahei.ttf -------------------------------------------------------------------------------- /Assets/Res/yahei.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99d4c521927b57c4aa8be5b1ea0f2e8b 3 | TrueTypeFontImporter: 4 | externalObjects: {} 5 | serializedVersion: 4 6 | fontSize: 16 7 | forceTextureCase: -2 8 | characterSpacing: 0 9 | characterPadding: 1 10 | includeFontData: 1 11 | fontNames: 12 | - Microsoft YaHei 13 | fallbackFontReferences: [] 14 | customCharacters: 15 | fontRenderingMode: 0 16 | ascentCalculationMode: 1 17 | useLegacyBoundsCalculation: 0 18 | shouldRoundAdvanceValue: 1 19 | userData: 20 | assetBundleName: 21 | assetBundleVariant: 22 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87c8d148fbeebe0499afc3335d291898 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/BMConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 7d36208e8b0045f7ab3a61f1ab8f60c6, type: 3} 13 | m_Name: BMConfig 14 | m_EditorClassIdentifier: 15 | AssetLoadMode: 1 16 | MaxDownLoadCount: 8 17 | ReDownLoadCount: 4 18 | -------------------------------------------------------------------------------- /Assets/Resources/BMConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 940f04c93fdef664eacf2fe2fd3c14a1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/DownLoadUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e2c445103d0e2f4c863f59ca9392ba0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/EventSystem.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8937143817873168053 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 2774055993138627550} 12 | - component: {fileID: 3365924964072246454} 13 | - component: {fileID: 4426751689971356661} 14 | m_Layer: 0 15 | m_Name: EventSystem 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &2774055993138627550 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 8937143817873168053} 28 | m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &3365924964072246454 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 8937143817873168053} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | m_FirstSelected: {fileID: 0} 48 | m_sendNavigationEvents: 1 49 | m_DragThreshold: 10 50 | --- !u!114 &4426751689971356661 51 | MonoBehaviour: 52 | m_ObjectHideFlags: 0 53 | m_CorrespondingSourceObject: {fileID: 0} 54 | m_PrefabInstance: {fileID: 0} 55 | m_PrefabAsset: {fileID: 0} 56 | m_GameObject: {fileID: 8937143817873168053} 57 | m_Enabled: 1 58 | m_EditorHideFlags: 0 59 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 60 | m_Name: 61 | m_EditorClassIdentifier: 62 | m_HorizontalAxis: Horizontal 63 | m_VerticalAxis: Vertical 64 | m_SubmitButton: Submit 65 | m_CancelButton: Cancel 66 | m_InputActionsPerSecond: 10 67 | m_RepeatDelay: 0.5 68 | m_ForceModuleActive: 0 69 | -------------------------------------------------------------------------------- /Assets/Resources/EventSystem.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f788de930881c04981e0164ec226c8f 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UIManager.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c81d6e527dc977547adec4480e672f9e 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources/UniversalRenderPipelineAsset.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f848a1cefa600c4b81576fb071c8ddd 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/UniversalRenderPipelineAsset_Renderer.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87a0fca8c6c79d844ae9df297831400a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c1a56e442d0c5945863903b6462c218 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Game.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5308712a456ec847807fa8b8234f8d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Game.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60c0b125629d7e9449419d1f97aec16c 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Game/LightingData.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Scenes/Game/LightingData.asset -------------------------------------------------------------------------------- /Assets/Scenes/Game/LightingData.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7e67bc2c834e80499253b19e4657fd3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 112000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Game/Lightmap-0_comp_dir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Scenes/Game/Lightmap-0_comp_dir.png -------------------------------------------------------------------------------- /Assets/Scenes/Game/Lightmap-0_comp_dir.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e36032e678a0784386f26061fb82ef3 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 1 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 1 35 | aniso: 3 36 | mipBias: 0 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 12 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: [] 78 | physicsShape: [] 79 | bones: [] 80 | spriteID: 81 | internalID: 0 82 | vertices: [] 83 | indices: 84 | edges: [] 85 | weights: [] 86 | secondaryTextures: [] 87 | spritePackingTag: 88 | pSDRemoveMatte: 0 89 | pSDShowRemoveMatteOption: 0 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/Scenes/Game/Lightmap-0_comp_light.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Scenes/Game/Lightmap-0_comp_light.exr -------------------------------------------------------------------------------- /Assets/Scenes/Game/Lightmap-0_comp_light.exr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25a9b4dd1b563e64bb40f4d05465ab12 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 1 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 1 35 | aniso: 3 36 | mipBias: 0 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 0 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 6 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: [] 78 | physicsShape: [] 79 | bones: [] 80 | spriteID: 81 | internalID: 0 82 | vertices: [] 83 | indices: 84 | edges: [] 85 | weights: [] 86 | secondaryTextures: [] 87 | spritePackingTag: 88 | pSDRemoveMatte: 0 89 | pSDShowRemoveMatteOption: 0 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/Scenes/Game/ReflectionProbe-0.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mister91jiao/BundleMaster_IntegrateETTask/d450e2885bb07124ab99a40bf9ffaedcb6943328/Assets/Scenes/Game/ReflectionProbe-0.exr -------------------------------------------------------------------------------- /Assets/Scenes/Game/ReflectionProbe-0.exr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 204ff70b5c4bdbe47a4b35d423e850fd 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 1 29 | seamlessCubemap: 1 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 2 35 | aniso: 0 36 | mipBias: 0 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 2 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 1 68 | compressionQuality: 100 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: [] 78 | physicsShape: [] 79 | bones: [] 80 | spriteID: 81 | internalID: 0 82 | vertices: [] 83 | indices: 84 | edges: [] 85 | weights: [] 86 | secondaryTextures: [] 87 | spritePackingTag: 88 | pSDRemoveMatte: 0 89 | pSDShowRemoveMatteOption: 0 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Assets/Scenes/GameSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: GameSettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 1 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 0 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 1 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 512 45 | m_PVREnvironmentSampleCount: 256 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 1 51 | m_PVRFilteringMode: 1 52 | m_PVRDenoiserTypeDirect: 1 53 | m_PVRDenoiserTypeIndirect: 1 54 | m_PVRDenoiserTypeAO: 1 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Assets/Scenes/GameSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96fd926e0dbe8014f854d0f64ef96612 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Init.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Init_2.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56e8291126294654b89f23a1d708abd7 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1a77785bce0b1f4db8ae4543f75c1d0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/BPath.cs: -------------------------------------------------------------------------------- 1 | // ReSharper disable All 2 | namespace BM 3 | { 4 | public class BPath 5 | { 6 | public const string Assets_Bundles_car__mp4 = "Assets/Bundles/car.mp4"; 7 | public const string Assets_Bundles_LoginUI__prefab = "Assets/Bundles/LoginUI.prefab"; 8 | public const string Assets_Bundles_ResetUI__prefab = "Assets/Bundles/ResetUI.prefab"; 9 | public const string Assets_Bundles_SubUI__prefab = "Assets/Bundles/SubUI.prefab"; 10 | public const string Assets_Bundles_Atlas_UISpriteAtlas__spriteatlas = "Assets/Bundles/Atlas/UISpriteAtlas.spriteatlas"; 11 | public const string Assets_Bundles_SubBundleAssets_mister91jiao__prefab = "Assets/Bundles/SubBundleAssets/mister91jiao.prefab"; 12 | public const string Assets_Bundles_SubBundleAssets_SubUI_Copy__prefab = "Assets/Bundles/SubBundleAssets/SubUI_Copy.prefab"; 13 | public const string Assets_Scenes_Game__unity = "Assets/Scenes/Game.unity"; 14 | public const string Assets_Bundles_GroupBundle_bds__png = "Assets/Bundles/GroupBundle/bds.png"; 15 | public const string Assets_Bundles_GroupBundle_ylzy__jpg = "Assets/Bundles/GroupBundle/ylzy.jpg"; 16 | public const string Assets_Bundles_GroupBundle_zfnp__jpg = "Assets/Bundles/GroupBundle/zfnp.jpg"; 17 | public const string Assets_Res_UI_91logo__png = "Assets/Res/UI/91logo.png"; 18 | public const string Assets_Res_UI_LoginBG__jpg = "Assets/Res/UI/LoginBG.jpg"; 19 | public const string Assets_Res_UI_xjj__jpg = "Assets/Res/UI/xjj.jpg"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Scripts/BPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 757e62b1a7201874b922e86e6ad3eb31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Init.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fcf094991019c54884f4ac075a1624a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/InstallHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using ET; 4 | using UnityEngine; 5 | using BM; 6 | using UnityEngine.UI; 7 | 8 | public static class InstallHelper 9 | { 10 | public static async ETTask InstallApk() 11 | { 12 | //创建下载UI 13 | Transform uiManagerTf = GameObject.Find("UIManager").transform; 14 | GameObject downLoadUI = Object.Instantiate(Resources.Load("DownLoadUI"), uiManagerTf); 15 | 16 | Dictionary updatePackageBundle = new Dictionary() 17 | { 18 | {"APK", false}, 19 | }; 20 | UpdateBundleDataInfo updateBundleDataInfo = await AssetComponent.CheckAllBundlePackageUpdate(updatePackageBundle); 21 | Slider progressSlider = downLoadUI.transform.Find("ProgressSlider").GetComponent(); 22 | Text progressText = downLoadUI.transform.Find("ProgressValue/Text").GetComponent(); 23 | Text speedText = downLoadUI.transform.Find("SpeedValue/Text").GetComponent(); 24 | Button cancelDownLoad = downLoadUI.transform.Find("Cancel").GetComponent