diff --git a/Docs/AssetDeploy.md b/Docs/AssetDeploy.md index 899a678..1eac871 100644 --- a/Docs/AssetDeploy.md +++ b/Docs/AssetDeploy.md @@ -1,3 +1,14 @@ # 资源部署 -监听 \ No newline at end of file +在资源补丁包构建成功之后,需要将补丁包传输到CDN服务器上。 + +如果是本地测试,可以在本地创建一个WEB服务器,然后将补丁包拷贝到WEB服务器下。 + +```` +CDN +└─android + ├─100 补丁包文件夹 + ├─101 补丁包文件夹 + └─102 补丁包文件夹 +```` + diff --git a/Docs/YooAssetUpdater.md b/Docs/YooAssetUpdater.md index d75cb0c..b6ca569 100644 --- a/Docs/YooAssetUpdater.md +++ b/Docs/YooAssetUpdater.md @@ -61,10 +61,12 @@ private void CreateDownloader() /// private IEnumerator Download() { - //注册下载回调 + //注册回调方法 _downloader.OnDownloadFileFailedCallback = OneDownloadFileFailed; _downloader.OnDownloadProgressCallback = OnDownloadProgressUpdate; _downloader.OnDownloadOverCallback = OnDownloadOver; + + //开启下载 _downloader.BeginDownload(); yield return _downloader; @@ -78,27 +80,5 @@ private IEnumerator Download() //下载失败 } } - -/// -/// 文件下载失败 -/// -private void OneDownloadFileFailed(string fileName) -{ - Debug.LogError($"File download failed : {fileName}"); -} - -/// -/// 下载进度的更新 -/// -private void OnDownloadProgressUpdate(int totalDownloadCount, int currentDownloadCount, long totalDownloadSizeBytes, long currentDownloadSizeBytes) -{ -} - -/// -/// 下载结束,成功或失败 -/// -private void OnDownloadOver(bool isSucceed) -{ -} ````