少年修仙传客户端代码仓库
client_linchunjie
2018-12-24 179709395269fe18751b7c8b542a36ad6c3498c8
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
15 ■■■■■ 已修改文件
System/Launch/LaunchWin.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Launch/LaunchWin.cs
@@ -30,9 +30,7 @@
        string stepDescription = string.Empty;
        float refProgress = 0f;
        float behaviourProgress = 0f;
        float trueProgress = 0f;
        float timer = 0.1f;
        float interval = 0.1f;
@@ -68,9 +66,7 @@
        {
            backGroundTimer = 0f;
            backGroundIndex = 0;
            refProgress = 0f;
            behaviourProgress = 0f;
            trueProgress = 0f;
            m_ProgressSlider.ResetValue(0f);
            m_AlphaTween.SetStartState();
@@ -121,7 +117,7 @@
        void UpdateLoadingProgress(Launch.LaunchStage _stage, float _progress)
        {
            trueProgress = Mathf.Max(_progress, behaviourProgress);
            behaviourProgress = _progress;
            switch (_stage)
            {
                case Launch.LaunchStage.AssetCopy:
@@ -153,15 +149,6 @@
            }
            else
            {
                if (trueProgress > 0.9599f)
                {
                    behaviourProgress = Mathf.Clamp01(behaviourProgress + Time.deltaTime * 0.2f);
                }
                else
                {
                    behaviourProgress = Mathf.SmoothDamp(behaviourProgress, trueProgress, ref refProgress, 0.2f);
                }
                m_ProgressSlider.value = behaviourProgress;
                m_Progress.text = VersionUtility.Instance.IsShangGu() ? stepDescription :
                    StringUtility.Contact(stepDescription, Mathf.RoundToInt(behaviourProgress * 100), "%");