Here is a quick video to show you how you can make an AI that will follow the player and avoid any obstacle in your scene.
In my next video I will show you some more cool ways you can use this future. for example, making the AI only follow the player when it see the player. Part2 • Unity AI - Avoid Movable Obstacles