public void RemoveProgressBarListener(string key) { if (ProgressMap.ContainsKey(key)) { ProgressMap.Remove(key); } }
private IProgress <float> GetProgress(string assetBundleName) { if (!ProgressMap.ContainsKey(assetBundleName)) { ProgressMap[assetBundleName] = new Progress <float>(progress => { ProgressedValueMap[assetBundleName] = progress; ProgressSummary.Value = ProgressedValueMap.Values.Sum(); }); } return(ProgressMap[assetBundleName]); }