少年修仙传客户端代码仓库
client_Zxw
2018-08-29 c9caeb44144b88cefbc0c855086cb11d986d8d70
System/Launch/LaunchWin.cs
@@ -14,6 +14,8 @@
    public class LaunchWin : Window
    {
        [SerializeField] UIAlphaTween m_AlphaTween;
        [SerializeField] Image m_BackGround;
        [SerializeField] SmoothSlider m_ProgressSlider;
        [SerializeField] Text m_Progress;
        [SerializeField] Text m_BuildTime;
@@ -33,6 +35,8 @@
        #region Built-in
        protected override void BindController()
        {
            var sprite = Resources.Load<Sprite>("UI/Sprites/Launch");
            m_BackGround.overrideSprite = sprite;
        }
        protected override void AddListeners()
@@ -45,6 +49,7 @@
            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)
@@ -77,6 +82,11 @@
        }
        #endregion
        public void FadeOut()
        {
            m_AlphaTween.Play();
        }
        void UpdateLoadingProgress(Launch.LaunchStage _stage, float _progress)
        {
            trueProgress = Mathf.Max(_progress, behaviourProgress);