Hi, guys!
I’ve got another alternative way of specifying unbreakable blocks, which, I think would be even more intuitive for the other people in the team (like designers). Instead of setting breakability by tagging, we can do it like this:
if (hitSprites.Length > 0) {
isBreakable = true;
}
Basically, if we don’t specify any hit sprites, the sprite is unbreakable 
Hope it helps!
1 Like
Edit: I am an idiot, this makes 1 hit bricks unbreakable 
1 Like
Indeed.
But just declaring an instance variable “bool IsBreakable” and then testing on that is the simplest solution. You don’t need to meddle with tags and it still allows you to efficiently switch the breakability of a block in the code.
Hi,
The simplest way would be to remove the script from the Unbreakable brick Prefab altogether. 
But, of course this is just a hack and not very ‘satisfactory’ from a programmer’s POV. 
Even so, I thought of giving this suggestion anyway.
Cheers & Good Luck,
YA