How to destroy GameObjects that fill the row?

I am making a game and i want to destroy Objects (squares) when they fill the row. I also want to display “Game Over” when they fill the entire screen…Can somebody explain me how to do that, please?

Good day.

I want to make a house, (with garden) and i want the water falling on the rooof to be stoerd and use it for my plants when the day is too sunny.

Can somebody explain me how to do that, please?

Do you understand my sarcastical response?

You are not asking how to use some function, or how to execute something… you are asking how to create something… How to destroy? Unse destroy(), how to display GameOver, create a canvas and make it enable when its necessary…

Look for other Unity Answers and see how to ask, specific question, with specific answers…