Example #1
0
    public GameObject Pop(string tName, TSVector position, TSQuaternion rotation)
    {
        PoolItem item = null;

        if (mPoolDic.TryGetValue(tName, out item))
        {
            return(item.Pop(position, rotation));
        }
        else
        {
            Debug.Log("获取对象失败,对象池未注册该对象");
            return(null);
        }
    }
Example #2
0
    public GameObject Pop(string tName)
    {
        PoolItem item = null;

        if (mPoolDic.TryGetValue(tName, out item))
        {
            return(item.Pop());
        }
        else
        {
            Debug.Log("获取对象失败,对象池未注册该对象");
            return(null);
        }
    }