Ejemplo n.º 1
0
    public void ReleaseComPool <UnitType>() where UnitType : Component, IPoolUnit
    {
        var type = typeof(UnitType);

        if (!mSubPoolMap.ContainsKey(type))
        {
            print(string.Format("Type{0} has not been registered", type.Name));
            return;
        }
        ISubPool subPool = mSubPoolMap[type];

        subPool.Release();
    }