private void FeatureRight(AssetTask task) { float size = float.Parse(sourceMgr.getSouceSize(task.AssetBundleName)) / 1024 / 1024; m_CurSouceSizes += size; UserConfigManager usr = Core.Data.usrManager; usr.UserConfig.downCurSize = m_CurSouceSizes; usr.save(); string color = "ffff02"; string str1 = SetLabelColor(color, (m_CurSouceSizes).ToString("F")); SetDownloadSizeLabel(str1 + "/" + m_SouceSizes.ToString("F") + "MB"); m_DownloadTime = (int)((m_SouceSizes - m_CurSouceSizes) * m_CurDownTime); SetDownloadTimeLabel(GetDownloadTime(m_DownloadTime)); m_Index++; curCount++; if (m_EventDownloadModel != null) { m_EventDownloadModel(m_Index); } else { m_SLiderTotal.value = curTotalRatio + (1 - curTotalRatio) * curCount * 1.0f / totalCount; } SouceData data = new SouceData(); data.FileName = task.AssetBundleName; data.Num = sourceMgr.getNewNum(task.AssetBundleName); data.Size = sourceMgr.getSouceSize(task.AssetBundleName); data.isError = 1; sourceMgr.AddDownloadRecordAndSaveToLocaldisk(data); }