facing issue in 3d game

i’m trying to make a 3d game in which a maze, a player and an enemy .

I can move player around but i want the enemy to be on track in the maze which i will assign to it, but i cannot do it yet.

this function is available in 2d game pacman in which an enem will be stick to it’s defined track via waypoints, but i’m unable to apply it in unity 3d.

how can i do it?

What you are looking for is the navmesh feature of Unity. Search for that and you will find what you need. There is also a extensive tutorial about the navmesh.