예제 #1
0
    public void Reclaim(IPoolable poolable)
    {
        string type = poolable.GetResourceBase();

        if (!freePoolables.ContainsKey(type))
        {
            freePoolables.Add(type, new Queue <IPoolable>());
        }
        freePoolables[type].Enqueue(poolable);
    }