private IEnumerator UpdateProgressBar() { AssetDataMng assetDataMng = AssetDataMng.Instance(); float downloadFileNum = (float)assetDataMng.RealABDL_TotalCount_LV(); while (assetDataMng.IsAssetBundleDownloading()) { float downloadedFileCount = (float)assetDataMng.RealABDL_NowCount_LV(); this.SetProgressBar(downloadedFileCount, downloadFileNum); yield return(null); } this.SetProgressBar(downloadFileNum, downloadFileNum); yield return(new WaitForSeconds(0.25f)); yield break; }
public IEnumerator WaitAssetBundleDownload() { AssetDataMng manager = AssetDataMng.Instance(); float max = (float)manager.RealABDL_TotalCount_LV(); this.progressBar.gameObject.SetActive(true); while (manager.IsAssetBundleDownloading()) { this.SetProgressBar((float)manager.RealABDL_NowCount_LV(), max); yield return(new WaitForSeconds(0.25f)); } this.SetProgressBar(1f, 1f); yield return(new WaitForSeconds(0.25f)); yield break; }