A simpler solution? - Tags in Unity

I don’t know if I’m missing something but Mike put code in and referred to them as ‘breakable’ and ‘unbreakable’ which is great but if you wanted to create ‘unbreakable’ blocks you can simply:

  1. Duplicate the prefab
  2. Remove the script component

And that’s it, I find it works for me as there is no counting or breaking of the blocks so am I missing something?

Hi Jogus,

You are right. If the unbreakable blocks are not supposed to do anything and if they do not affect the game in any way, it is sufficient to remove the Block script. However, if, for example, the ball is supposed to make a different sound when it hits an unbreakable block, a tag could make sense. In the end, it’s a design decision.


See also:

1 Like

Thanks!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms