public SpriteAtlas TryGetAtlas(string sprname) { if (Sprites == null || string.IsNullOrEmpty(sprname)) { return(null); } for (int i = 0; i < Sprites.Count; ++i) { SpriteAtlas atlas = Sprites[i]; if (atlas.ContainsSprite(sprname)) { return(atlas); } } if (FrameWorkConfig.Open_DEBUG) { LogMgr.LogErrorFormat("{0} 不存在在任何一个图集中 ", sprname); } return(null); }