Hello there, in my opinion it’s easier using only one variable for the HP of the blocks.
So on your config params you cna use
[SerializeField] int blockHP = 2;
and in the function OnCollisionEnter2D
if (tag == “Breakable”)
{
blockHP–;
if (blockHP == 0)
{
DestroyBlock();
}
}
What do you guys think? For me it’s more intuitive