This solution consists of a way to control Standard Assets’ artificial intelligence prefab, Ethan, by clicking on the stage.
By right clicking the character will walk to the indicated position and if double clicking, the character will run to the indicated position.
A SHORT BREAK WITH THE LATEST NEWS
LET'S CONTINUE WITH THE ARTICLE
Download Unity Package
PLEASE CONSIDER SUBSCRIBING TO THE CHANNEL
PRESS "DOWNLOAD NOW!" TO DOWNLOAD THE FILE
When importing the package you must bake the Navmesh before entering the game mode, otherwise you will get an error and the character will not move. To do this we go to the GameObject called “WalkAreas” inside “Castle” and in the “Nav Mesh Surface” component we click on Bake.