Пример #1
0
    private void Despawn(GOType type, GameObject go)
    {
        switch (type)
        {
        case GOType.GO_PLAYER:
            player_pool.Free(go);
            break;

        case GOType.GO_BOMB:
            bomb_pool.Free(go);
            break;

        case GOType.GO_PWRUP:
            pwr_up_pool.Free(go);
            break;
        }
    }