| | |
| | | else
|
| | | {
|
| | | var progressInfo = Launch.progressInfo;
|
| | | m_TotalProgressSlider.value = progressInfo.totalProgress;
|
| | | m_TotalProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.totalProgress * 100), "%");
|
| | |
|
| | |
|
| | | if (progressInfo.stage == Launch.LaunchStage.DownLoad)
|
| | | {
|
| | | if (m_PartProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_PartProgressSlider.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | if (m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_TotalProgressSlider.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | m_PartProgressSlider.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | if (!m_TotalProgressSlider.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_TotalProgressSlider.gameObject.SetActive(true);
|
| | | }
|
| | |
|
| | | m_TotalProgressSlider.value = progressInfo.totalProgress;
|
| | | m_TotalProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.totalProgress * 100), "%");
|
| | |
|
| | | m_PartProgressSlider.value = progressInfo.partProgress;
|
| | | m_PartProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.partProgress * 100), "%");
|
| | | }
|