Oh…please help~~
I practice as the Stealth project tutorial. But when I finishing whole course, I find the enemies can’t move.They stand in original position and never move. But when player come close and stand in front, enemy will trigger shoot action. That’s my problem.
I did try a lot to solve…
I try Debug.log() to detect where it goes wrong. But it seems every field has the right value. And surely the enemy’s script’s EnemyAI.cs is attached to the enemyGameObject. And the function of Shooting(), Chasing(), Patrolling() are all executed, because I add some Debug.log() to see where it goes.
This problem is troubling me almost 10 hours. Please please is there anybody can give a help.
Have you experienced such problem before? Please told me . Thank you very very much.
the real scene img like this one:
[13742-捕获.png|13742]