Example #1
0
    public void Push(string tName, GameObject tObj)
    {
        PoolItem item = null;

        if (mPoolDic.TryGetValue(tName, out item))
        {
            item.Push(tObj);
        }
        else
        {
            Debug.Log("回收对象失败,对象池未注册该对象");
        }
    }