Example #1
0
 public void RemoveProgressBarListener(string key)
 {
     if (ProgressMap.ContainsKey(key))
     {
         ProgressMap.Remove(key);
     }
 }
Example #2
0
 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]);
 }