You can use Physics.IgnoreCollision(collider1, collider2). Arguments of this function are colliders of two objects, which you whant to ignore each other.
But there is other way - collision layers. Read about them [here][1]
[1]: http://docs.unity3d.com/Manual/LayerBasedCollision.html
↧