Download

Next level after destroying blocks

Hello!
I want to start a new level after destroying all the blocks in the Arkanoid (I just compared a certain number of x and y blocks using blueprint), but I don’t know how to do this.
There is an idea to make a special variable that will contain an array of generated blocks and after destroying one block, take one unit into the variable (i.e. one block), and when zero appears, create a collision in which you need to write logic to start the next level. But what I have described, I will not be able to fully implement

If the blocks are actors, then I would use GetAllActorsOfClass() after each block is destroyed. If 0 then level completed.