public Sprite GetSprite(emUIAltas alt, string name)
 {
     if (atlas.ContainsKey(alt))
     {
         return(atlas [alt].GetSprite(name));
     }
     return(null);
 }
    public void LoadAtlas(emUIAltas al)
    {
        //foreach (emUIAltas al in Enum.GetValues(typeof(emUIAltas))) {
        string fullName = EnumUtils.GetString <emUIAltas> (al);
        //Debug.LogError (fullName);
        Resource res = ResourceManager.Instance.GetResource(fullName, typeof(SpriteAtlas), enResourceType.UIPrefab, false, false);

        //Debug.LogError (res.m_content);
        if (res.m_content != null)
        {
            atlas [al] = res.m_content as SpriteAtlas;
            string name = FileTools.GetFullName(fullName);
            //Debug.LogError (name);
            nameAtlas [name] = atlas [al];
        }
        //}
    }