| | |
| | | {
|
| | | backGroundTimer = 0f;
|
| | | backGroundIndex = 0;
|
| | | if (m_TotalProgressSlider!=null)
|
| | | if (m_TotalProgressSlider != null)
|
| | | {
|
| | | m_TotalProgressSlider.ResetValue(0f);
|
| | | }
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | | {
|
| | | base.OnActived();
|
| | | if (m_TotalProgressSlider == null)
|
| | | {
|
| | | m_TotalProgressSlider = this.GetComponentInChildren<SmoothSlider>(true);
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | public void FadeOut()
|
| | |
| | |
|
| | | if (progressInfo.stage == Launch.LaunchStage.DownLoad)
|
| | | {
|
| | | if (m_PartProgressSlider.gameObject.activeInHierarchy)
|
| | | if (m_PartProgressSlider != null && m_PartProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_PartProgressSlider.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | if (m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | if (m_TotalProgressSlider != null && m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_TotalProgressSlider.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | if (!m_PartProgressSlider.gameObject.activeInHierarchy)
|
| | | if (m_PartProgressSlider != null && !m_PartProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_PartProgressSlider.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | if (!m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | if (m_TotalProgressSlider != null && !m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_TotalProgressSlider.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | m_TotalProgressSlider.value = progressInfo.totalProgress;
|
| | | m_PartProgressSlider.value = progressInfo.partProgress;
|
| | | if (m_TotalProgressSlider != null)
|
| | | {
|
| | | m_TotalProgressSlider.value = progressInfo.totalProgress;
|
| | | }
|
| | |
|
| | | if (m_PartProgressSlider != null)
|
| | | {
|
| | | m_PartProgressSlider.value = progressInfo.partProgress;
|
| | | }
|
| | | }
|
| | |
|
| | | DisplayStageDescription(progressInfo.stage, progressInfo.step);
|
| | |
| | | {
|
| | | showStage = stage;
|
| | | showStep = step;
|
| | | m_StageDescription.text = GetLaunchStageDescription(stage, step);
|
| | | if (m_StageDescription != null)
|
| | | {
|
| | | m_StageDescription.text = GetLaunchStageDescription(stage, step);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|