private SpritePool GetPool(String path, String layer, String origin, bool additive, SpriteGroup spriteGroup, int poolGroup) { String key = GetKey(path, layer, origin, additive, spriteGroup, poolGroup); SpritePool pool; if (!pools.TryGetValue(key, out pool)) { pool = new SpritePool(path, layer, origin, additive, spriteGroup); pools.Add(key, pool); } return pool; }
private SpritePool GetPool(String path, String layer, String origin, bool additive, SpriteGroup spriteGroup, int poolGroup) { String key = GetKey(path, layer, origin, additive, spriteGroup, poolGroup); SpritePool pool; if (!pools.TryGetValue(key, out pool)) { pool = new SpritePool(path, layer, origin, additive, spriteGroup); pools.Add(key, pool); } return(pool); }