public static SpriteAni CreateAni(Sprite sprite,string ani,Texture.TextureMgr tmgr,string texpath="") { string hash = sprite.name + "|" + ani; if (bufs.ContainsKey(hash) == false) { bufs[hash]= SpriteAni.CreateAni(sprite.anims[ani],tmgr,texpath); } return bufs[hash]; }
public ProjParser(ILogger _logger, string respath, Sprite sprite) { logger = _logger; resourcepath = respath; cursprite = sprite; }