For more detail this asset from the Unity Asset Store: Click Here
This is a paid asset, but now you can download Simple AI for 2D Platformer Games for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
Simple AI for 2D Platformer Games
“If possible, please buy the package to support the developer”
With this package you can easily add simple AI (patrolling, shooting, gameobject detection) to enemies or to other Game Objects. Or you can make a flying follower to you player.
1 minute setup and it’s working!
You just have to place your enemies on the scene and drag and drop the scripts to it.
Very accurate and helpful documentation is available for the plugin. And there is a test scene where you can see how it works.
-Make them patrol or leave them idle
-Jumping is better now
-Now you can make them “see” other gameobjects
-Follow the target they saw
-Wait for it if it’s out of sight
-Shooting is now an option if they see the target
-enemies can “hear” foot steps so they know if the player is behind them