private void DespawnObject() { if (liveObjects.Count <= 0) { return; } TestObjectItem terryTrans = liveObjects[liveObjects.Count - 1]; poolMgr.Despawn <TestObjectItem>(POOL_ITEM_NAME, terryTrans); liveObjects.Remove(terryTrans); }
private void DespawnPrefaObject() { if (liveObjects.Count <= 0) { return; } Transform terryTrans = liveObjects[0]; poolMgr.Despawn <Transform>(POOL_ITEM_NAME, terryTrans); liveObjects.Remove(terryTrans); }