i need a script to make object be destoryed after touching another

i am new in unity and i made a plane(cube) that moving and i made cubes and you need to not touch the other cubes while moving(the cubes are like bulldings) and i dont know how to make the plane cube to be destroyed after the plane touches the builldings(i dont know how to make the plane touch the builldings and not passing them too). what i need to do?

If you’re new to Unity, there are a lot of great tutorials that will help you get started. 3DBuzz has some great ones, and you could modify them to suit your purposes. This tutorial is for a 2D shooter, but uses the same basic principles that you’re looking to implement:

http://www.3dbuzz.com/training/view/unity-standard/simple-2d-shooter