Going through walls help!

I need help with a model of a labyrinth becuse i can walk trough walls and i would like to disable it. How do i do that?

Create a mesh collider of your labyrinth. If the labryth is one 3d object, make sure the mesh collider only has the colliding detail (remove unnecessary triangles). If the labyrinth is several objects put together, the make mesh colliders out of each piece. Once you have the collider detail, then, attach a mesh collider from the unity physics system. Then attach your created collider mesh to that physics object. Make sure your player has a collider attached as well. In conclusion, in order for two objects to collide, the objects need colliders.