It looks like you're new here. If you want to get involved, click one of these buttons!
How to check collision on different layer...
e.g Player is on Player layer while Pipe is on pipe layer
You should use the collision matrix. It handles collision between layers. You can access it by going
Edit > Project Settings > Physics (You can go to Physics 2D also if you are working in 2D)