Пример #1
0
 internal void ExportStreamingAssetWhenDownloadApk(Action finished)
 {
     ResourceIndexInfo.Instance.Init(Application.get_streamingAssetsPath() + "/ResourceIndexInfo.txt", delegate {
         LoggerHelper.Debug("资源索引信息:" + ResourceIndexInfo.Instance.GetLeftFilePathes().Length, true, 0);
         if (ResourceIndexInfo.Instance.GetLeftFilePathes().Length != 0)
         {
             StreamingAssetManager manager2 = new StreamingAssetManager {
                 AllFinished = finished
             };
             manager2.UpdateApkExport();
         }
         else
         {
             LoggerHelper.Debug("没有streamingAssets,不需要导出", true, 0);
             finished();
         }
     }, null);
 }
Пример #2
0
 //使用平台更新下载apk时导出资源,先导出资源再下载apk
 internal void ExportStreamingAssetWhenDownloadApk(Action finished)
 {
     ResourceIndexInfo.Instance.Init(Application.streamingAssetsPath + "/ResourceIndexInfo.txt", () =>
     {
         LoggerHelper.Debug("资源索引信息:" + ResourceIndexInfo.Instance.GetLeftFilePathes().Length);
         if (ResourceIndexInfo.Instance.GetLeftFilePathes().Length != 0)
         {
             //下载apk时导出资源
             var go = new StreamingAssetManager
             {
                 AllFinished = finished
             };
             go.UpdateApkExport();
         }
         else
         {
             LoggerHelper.Debug("没有streamingAssets,不需要导出");
             finished();
         }
     });
 }
Пример #3
0
 //使用平台更新下载apk时导出资源,先导出资源再下载apk
 internal void ExportStreamingAssetWhenDownloadApk(Action finished)
 {
     ResourceIndexInfo.Instance.Init(Application.streamingAssetsPath + "/ResourceIndexInfo.txt", () =>
     {
         LoggerHelper.Debug("资源索引信息:" + ResourceIndexInfo.Instance.GetLeftFilePathes().Length);
         if (ResourceIndexInfo.Instance.GetLeftFilePathes().Length != 0)
         {
             //下载apk时导出资源
             var go = new StreamingAssetManager
             {
                 AllFinished = finished
             };
             go.UpdateApkExport();
         }
         else
         {
             LoggerHelper.Debug("没有streamingAssets,不需要导出");
             finished();
         }
     });
 }