Exemple #1
0
 public DependenciesRefAndCount GetDRAC(string key, bool dontAdd = false)
 {
     key = AssetBundleSettingHelper.PathToPlatformFormat(key).ToLower();
     if (!allDic.ContainsKey(key))
     {
         if (dontAdd)
         {
             return(null);
         }
         var d = DependenciesRefAndCount.GetNew(key);
         allDic.Add(key, d);
     }
     return(allDic[key]);
 }
Exemple #2
0
 public void Add(string key, DependenciesRefAndCount value)
 {
     key = AssetBundleSettingHelper.PathToPlatformFormat(key).ToLower();
     dic.Add(key.ToLower(), value);
 }