disable a certain amount of game-objects

I’m making a game where the user clicks a button to destroy some green cubes
but they can’t destroy the green cube until the red is destroyed first

My question is…
how do I disable the Green cube until the red is destroyed first?