// Update is called once per frame void Update() { /* * if (isWaitingList) * { * if (listFinish) * { * isWaitingList = false; * isBusy = false; * bool succ = (err == null); * * if (cbLoadPageFinish != null) * { * cbLoadPageFinish(succ, err); * cbLoadPageFinish = null; * } * } * } */ if (isWaitingDownload) { double progress = 0; try { progress = downloadWorker.GetTotalProgress(); } catch (System.Exception e) { Debug.LogError("Download Error! " + e); } if (progress >= 1) { isWaitingDownload = false; isBusy = false; StorageReady(true); } } }
// Update is called once per frame void Update() { if (isWaitingDownload) { double progress = 0; try { progress = downloadWorker.GetTotalProgress(); Debug.Log("download...." + progress); } catch (System.Exception e) { Debug.LogError("Download Error! " + e); } if (progress >= 1) { isWaitingDownload = false; isBusy = false; DownloadFinish(true); } } }
// Update is called once per frame void Update() { if (isWaitingList) { if (listFinish) { isWaitingList = false; isBusy = false; bool succ = (err == null); if (cbLoadPageFinish != null) { cbLoadPageFinish(succ, err); cbLoadPageFinish = null; } } } if (isWaitingDownload) { double progress = 0; try { progress = downloadWorker.GetTotalProgress(); } catch (System.Exception e) { Debug.LogError("Download Error! " + e); } if (progress >= 1) { isWaitingDownload = false; isBusy = false; StorageReady(downloadFilePath); } } }