I need to finish the level by destroying all the blocks. How do I do this? I used to make blocks spawn, but now I put them myself.
I tried to make it so that when destroying one block, I have a counter variable that will be subtracted by one when destroying it (I did this in block bluprint). But the problem is that each block does this operation for itself, and in the end all blocks have their own variable that is subtracted once. But I need that for each destroyed block, the variable takes away not 1, but 2, 3, and so on.
Or it is can do it another way, but how?