Rework of the enemy controller behavior and some fixes on some unwanted behaviour. Test that all the enemies are working alright.
Things that are not in the pr:
Fix of component agent: i saw that on patrol the enemies dont go exactly to the target position making them stay in the same patrol state until the chase the player.
Player unreachable: i removed the method of checking if the player was reachable because it was causing unwanted behaviour, we should check the best way to integrate it, @Bernatmago let me know when u are available to check it out.
Thx a lot to @bernatgb for helping me and @VBoschMatas for the feedback.
Rework of the enemy controller behavior and some fixes on some unwanted behaviour. Test that all the enemies are working alright.
Things that are not in the pr:
Thx a lot to @bernatgb for helping me and @VBoschMatas for the feedback.