示例#1
0
    private void DespawnObject()
    {
        if (liveObjects.Count <= 0)
        {
            return;
        }

        TestObjectItem terryTrans = liveObjects[liveObjects.Count - 1];

        poolMgr.Despawn <TestObjectItem>(POOL_ITEM_NAME, terryTrans);
        liveObjects.Remove(terryTrans);
    }
示例#2
0
    private void DespawnPrefaObject()
    {
        if (liveObjects.Count <= 0)
        {
            return;
        }

        Transform terryTrans = liveObjects[0];

        poolMgr.Despawn <Transform>(POOL_ITEM_NAME, terryTrans);
        liveObjects.Remove(terryTrans);
    }