| | |
| | |
|
| | | void Update()
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | |
|
| | | if (!launchComplete)
|
| | | {
|
| | | if (currentTask == null)
|
| | |
| | | currentTask = null;
|
| | | }
|
| | |
|
| | | if (m_CurrentStage != LaunchStage.DownLoad)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | }
|
| | |
|
| | | var progress = Mathf.Lerp(progressInfo.totalProgress, timer / totalTime, 0.5f);
|
| | |
|
| | | var partProgress = 0f;
|
| | |
| | | partProgress = temp - (int)temp;
|
| | | }
|
| | |
|
| | | progressInfo = new ProgressInfo(m_CurrentStage, progress, partProgress);
|
| | | progressInfo = new ProgressInfo(m_CurrentStage, Mathf.Clamp01(progress), partProgress);
|
| | | }
|
| | |
|
| | | if (launchComplete)
|
| | |
| | | List<FileInfo> copyTasks = new List<FileInfo>();
|
| | |
|
| | | public override float expectTime {
|
| | | get { return LocalSave.GetFloat("AssetCopyTask_ExpectTime", 20f); }
|
| | | get { return LocalSave.GetFloat("AssetCopyTask_ExpectTime", 30f); }
|
| | | protected set { LocalSave.SetFloat("AssetCopyTask_ExpectTime", value); }
|
| | | }
|
| | |
|