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]); }
public void Add(string key, DependenciesRefAndCount value) { key = AssetBundleSettingHelper.PathToPlatformFormat(key).ToLower(); dic.Add(key.ToLower(), value); }