// Token: 0x0600006E RID: 110 RVA: 0x000050C1 File Offset: 0x000032C1 public static IEnumerator DoHotfix(Action <IEnumerator> startCoroutineFunc, Action finishCallback, Action <float> progressCallback) { bool isFinishCopy = false; float copyPercent = 0.3f; string tempPath = ProjectConfig.DataPath; IEnumerator copyPart = HotfixUtil.CopyFromStreamingAssets(ProjectConfig.StreamDataPath, tempPath, "*.zip", startCoroutineFunc, delegate { isFinishCopy = true; }, delegate(float val) { progressCallback(val * copyPercent); }); startCoroutineFunc(copyPart); while (!isFinishCopy) { yield return(null); } bool isFinishUnzip = false; IEnumerator unzipPart = HotfixUtil.UnzipFiles(tempPath, "*.zip", delegate { isFinishUnzip = true; }, delegate(float val) { progressCallback(copyPercent + val * (1f - copyPercent)); }); startCoroutineFunc(unzipPart); while (!isFinishUnzip) { yield return(null); } finishCallback(); yield break; }
private void Awake() { StartCoroutine(HotfixUtil.DoHotfix(_StartCoroutine, OnFinished, OnProgress)); }
// Token: 0x06000053 RID: 83 RVA: 0x0000378F File Offset: 0x0000198F private void Awake() { base.StartCoroutine(HotfixUtil.DoHotfix(new Action <IEnumerator>(this._StartCoroutine), new Action(this.OnFinished), new Action <float>(this.OnProgress))); }