| System/AssetVersion/DownloadMgr.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/AssetVersion/InGameDownLoad.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/AssetVersion/InGameDownLoadWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | 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()