protected TweenPoolList GetPoolList(Type type) { if (PoolDic.TryGetValue(type, out var result)) { return(result); } result = new TweenPoolList(type); PoolDic.Add(type, result); return(result); }
protected TweenPoolList GetPoolList <T>() where T : Tweener { var type = typeof(T); if (PoolDic.TryGetValue(type, out var result)) { return(result); } result = new TweenPoolList(type); PoolDic.Add(type, result); return(result); }