protected IEnumerator ShowFromStreamingAssets(ZipDataManifest localManifest, string directoryName) { if (localManifest == null) { throw new NullReferenceException( $"[WebViewController.ShowFromStreamingAssets] local manifest is null!"); } IEnumerable <string> filePaths = localManifest.Files.Select(i => Path.Combine(directoryName, i.Key)); yield return(CopyAllFiles(filePaths)); }
public void DoLoading(string folderPath) { // сначала загружаем манифест из StreamingAssets // var localCachedManifest = // await LoadCachedManifest(FullPath(Path.Combine(folderPath, _manifestFileName))); ZipDataManifest localCachedManifest = JsonConvert.DeserializeObject <ZipDataManifest>(manifest.text); //CheckUpgradeMethod(localCachedManifest, _bundleTag, _directoryName, _archiveName); StartCoroutine(ShowFromStreamingAssets(localCachedManifest, folderPath)); Debug.Log("COMPLETE!!!!!!"); }