simple player character ai

hi im making a sidescroller. im pretty new to unity and till now i have got my character imported with all animations and stuff and it has a character controller and a third person controller attached to it.

what i need the character to do now is to automatically point and then move towards the closest breakable object within range and then when at a certain distance from the object, it should stop and play an animation.

i found a lot of scripts on this but none worked in my case. please help.

Theres a lerps tutorial on the unity website with a script from the robot which is a good example of this.