| | |
| | |
|
| | | public class LaunchWin : Window
|
| | | {
|
| | | [SerializeField] UIAlphaTween m_AlphaTween;
|
| | | [SerializeField] Image m_BackGround;
|
| | | [SerializeField] SmoothSlider m_ProgressSlider;
|
| | | [SerializeField] Text m_Progress;
|
| | | [SerializeField] Text m_BuildTime;
|
| | |
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | var sprite = Resources.Load<Sprite>("UI/Sprites/Launch");
|
| | | m_BackGround.overrideSprite = sprite;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | behaviourProgress = 0f;
|
| | | trueProgress = 0f;
|
| | | m_ProgressSlider.ResetValue(0f);
|
| | | m_AlphaTween.SetStartState();
|
| | |
|
| | | m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex);
|
| | | if (VersionConfig.Get().debugVersion)
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | public void FadeOut()
|
| | | {
|
| | | m_AlphaTween.Play();
|
| | | }
|
| | |
|
| | | void UpdateLoadingProgress(Launch.LaunchStage _stage, float _progress)
|
| | | {
|
| | | trueProgress = Mathf.Max(_progress, behaviourProgress);
|