| | |
| | | currentTask = null;
|
| | | }
|
| | |
|
| | | if (m_CurrentStage != LaunchStage.DownLoad)
|
| | | if (m_CurrentStage == LaunchStage.DownLoad)
|
| | | {
|
| | | timer += Time.deltaTime;
|
| | | }
|
| | |
|
| | | var progress = Mathf.Lerp(progressInfo.totalProgress, timer / totalTime, 0.5f);
|
| | |
|
| | | var partProgress = 0f;
|
| | | if (currentTask == null)
|
| | | {
|
| | | partProgress = 0f;
|
| | | progressInfo = new ProgressInfo(m_CurrentStage, progressInfo.totalProgress, 0f);
|
| | | }
|
| | | else
|
| | | {
|
| | | var temp = currentTask.timer / Mathf.Min(1f, currentTask.duration);
|
| | | partProgress = temp - (int)temp;
|
| | | }
|
| | | timer += Time.deltaTime;
|
| | | var progress = Mathf.Lerp(progressInfo.totalProgress, timer / totalTime, 0.5f);
|
| | |
|
| | | progressInfo = new ProgressInfo(m_CurrentStage, Mathf.Clamp01(progress), partProgress);
|
| | | var partProgress = 0f;
|
| | | if (currentTask == null)
|
| | | {
|
| | | partProgress = 0f;
|
| | | }
|
| | | else
|
| | | {
|
| | | var temp = currentTask.timer / Mathf.Min(1f, currentTask.duration);
|
| | | partProgress = temp - (int)temp;
|
| | | }
|
| | |
|
| | | progressInfo = new ProgressInfo(m_CurrentStage, Mathf.Clamp01(progress), partProgress);
|
| | | }
|
| | | }
|
| | |
|
| | | if (launchComplete)
|
| | |
| | | public class ConfigInitTask : LaunchTask
|
| | | {
|
| | | public override float expectTime {
|
| | | get { return LocalSave.GetFloat("ConfigInitTask_ExpectTime", 5f); }
|
| | | get { return LocalSave.GetFloat("ConfigInitTask_ExpectTime", 10f); }
|
| | | protected set { LocalSave.SetFloat("ConfigInitTask_ExpectTime", value); }
|
| | | }
|
| | |
|