Hi guys,
I’m currently working on a 2D top down shooting game.
I already built a script to control ennemies, so they are able to shoot the player if the player is in a certain range. If the player is out of this range, the ennemies are just patrolling.
I want to add the Astar script because if the player is in a house, I want that the ennemy come in this house to search the player.
Thus, I want to call Astar script in certain condition (I know what are my conditions) but I don’t know how to call it.
Could you help me please ?
Thanks !