public static void GetAtlasAsync(string name, System.Action <UIAtlas> ac) { if (m_atlas_Cache.ContainsKey(name)) { if (m_atlas_Cache[name] == null) { Debuger.Log(tag, "GetAtlas", "this should never happen on getatlas"); UIAtlas ua = ResMgr.GetAtlas(name); m_atlas_Cache[name] = ua; } if (ac != null) { ac(m_atlas_Cache[name]); } } else { ResMgr.GetAtlasAsync(name, (ua) => { m_atlas_Cache.Add(name, ua); if (ac != null) { ac(ua); } }); } }