예제 #1
0
파일: Wv.cs 프로젝트: dpr3309/DELL_TEMP_001
        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));
        }
예제 #2
0
파일: Wv.cs 프로젝트: dpr3309/DELL_TEMP_001
        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!!!!!!");
        }