少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-27 8efad7a6ad63735e6f202730324bd80f00f98a50
5038 【1.3】4G环境下,地图分包下载显示优化
1个文件已修改
14 ■■■■■ 已修改文件
System/AssetVersion/MapAssetDownLoadProgress.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/MapAssetDownLoadProgress.cs
@@ -17,20 +17,6 @@
        this.onComplete = onComplete;
    }
    private void OnEnable()
    {
        var progress = InGameDownLoad.Instance.GetMapAssetDownLoadProgress(mapId);
        if (progress >= 0.9999f)
        {
            Destroy(this.gameObject);
        }
        else
        {
            m_Progress.text = StringUtility.Contact(Language.Get("LoadMap"), Mathf.Clamp((int)(progress * 100), 0, 100), "%");
            m_SliderProgress.fillAmount = Mathf.Clamp01(progress + 0.2f);
        }
    }
    void Update()
    {
        var progress = InGameDownLoad.Instance.GetMapAssetDownLoadProgress(mapId);