少年修仙传客户端代码仓库
hch
2025-02-12 1ea69287c20150c5756fd824727f256c852f9092
10394 下载测试

# Conflicts:
# System/Login/LoginWin.cs
3个文件已修改
18 ■■■■ 已修改文件
System/AssetVersion/DownloadMgr.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/InGameDownLoad.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/InGameDownLoadWin.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/DownloadMgr.cs
@@ -8,6 +8,7 @@
using System.Threading;
using UnityEngine;
using UnityEngine.Networking;
using vnxbqy.UI;
public class DownloadMgr : SingletonMonobehaviour<DownloadMgr>
@@ -133,7 +134,9 @@
            return;
        if (downloadTask.Count >= MaxDownLoadTask)
            return;
        DebugEx.LogFormat("下载最大任务:{0}", MaxDownLoadTask);
        //DebugEx.LogFormat("下载最大任务:{0}", MaxDownLoadTask);
        ScrollTip.ShowTip("下载最大任务:" + MaxDownLoadTask);
        var task = waitTask.Dequeue();
        if (task.IsDone)
            return;
System/AssetVersion/InGameDownLoad.cs
@@ -15,6 +15,7 @@
    Dictionary<int, List<AssetVersion>> mapTasks = new Dictionary<int, List<AssetVersion>>();//地图专属的资源
    public bool inGameDownLoadAllow = false; //是否可以下载
    public bool downLoadGo = false; //是否加速下载
    public float progress //下载进度
    {
@@ -591,6 +592,10 @@
    {
        if (!LoginWin.firstOpenEnd)
            return 20;
        if (downLoadGo)
            return 20;
        switch (Application.platform)
        {
            case RuntimePlatform.Android:
System/AssetVersion/InGameDownLoadWin.cs
@@ -27,7 +27,7 @@
        [SerializeField] SmoothSlider m_ProgressSlider;
        [SerializeField] Text m_Progress;
        [SerializeField] Text m_DownLoadSpeed;
        [SerializeField] ToggleButton downLoadGo; //加速下载
        float timer = 1f;
        #region Built-in
@@ -41,6 +41,11 @@
            m_PauseDownLoad.AddListener(PauseDownLoad);
            m_Award.AddListener(Award);
            m_Close.AddListener(CloseClick);
            downLoadGo.SetListener(() => {
                downLoadGo.isOn = !downLoadGo.isOn;
                InGameDownLoad.Instance.downLoadGo = downLoadGo.isOn;
                DownloadMgr.MaxDownLoadTask = InGameDownLoad.Instance.GetMaxTask();
            });
        }
        protected override void OnPreOpen()
@@ -56,6 +61,7 @@
            m_RewardGroup.Display(items);
            OnDownLoadStepChange(InGameDownLoad.Instance.state);
            downLoadGo.isOn = InGameDownLoad.Instance.downLoadGo;
        }
        protected override void OnAfterOpen()