void DownloadPlaying() { DownloadPlayingStageDataFactory strategyFactory = new DownloadPlayingStageDataFactory(); StageDataBase[] strategyBases = strategyFactory.BuildStrategys(); if (strategyBases == null || strategyBases.Length <= 0) { return; } Debug.Log("边玩边下载包=" + strategyBases.Length); ResourcesDownLoad zipDownload = new ResourcesDownLoad(strategyBases); zipDownload.StartDownLoad(); if (_first_view != null) { GUIS.Remove(_first_view); _first_view = null; } new PackageDownLoadView(zipDownload); zipDownload.DownLoadCompleteEvent = (rt) => { Updates.Clear(); GUIS.Clear(); AssetDownLoads.Clear(); }; }
public void Update() { if (AssetDownLoads.IsAllDownLoadComplete) { Debug.Log("全部下载完成!!"); GUIS.Clear(); AssetDownLoads.Clear(); Updates.Clear(); } }