//如果,如果有如果的话,就添加一个表,分别是iconname和Atlasname映射的工具表,由打图集工具自动生成 public static Font GetFont(string name) { if (m_atlas_Cache.ContainsKey(name)) { if (m_atlas_Cache[name] == null) { Debuger.Log(tag, "GetFont", "this should never happen on getfont"); Font ua = ResMgr.GetFont(name); m_atlas_Cache[name] = ua; } return(m_atlas_Cache[name]); } else { Font ua = ResMgr.GetFont(name); m_atlas_Cache.Add(name, ua); return(ua); } }