In addition, when the player didn’t walk into the target and the distance between the player and the target lower than 2f, the player can’t move anymore, I need to change the weapon range to 0, and then the player can move again. what is this problem?
When I use debug, I found that when the distance between the player and the target lower than 2, and then I click on the target, I can’t move. Even if I click to other locations, GetComponent().Stop() is still running and I can’t move.