private static CCBMFontConfiguration FNTConfigLoadFile(string file) { CCBMFontConfiguration item = null; if (CCLabelBMFont.configurations == null) { CCLabelBMFont.configurations = new Dictionary <string, CCBMFontConfiguration>(); } if (CCLabelBMFont.configurations.Keys.Contains <string>(file)) { item = CCLabelBMFont.configurations[file]; } else { item = CCBMFontConfiguration.configurationWithFNTFile(file); CCLabelBMFont.configurations.Add(file, item); } return(item); }
private static CCBMFontConfiguration FNTConfigLoadFile(string file) { CCBMFontConfiguration pRet = null; if (configurations == null) { configurations = new Dictionary <string, CCBMFontConfiguration>(); } if (!configurations.Keys.Contains(file)) { pRet = CCBMFontConfiguration.configurationWithFNTFile(file); configurations.Add(file, pRet); } else { pRet = configurations[file]; } return(pRet); }