My problem is here:
I believe it is the process of activating / deactivating the object, since I changed the "gameObject.setActive (false)" method to "getComponent <MeshRenderer> (). enable = false". It worked, but there is a shadow of the object when it loses its target.
This problem happens when you lose the target and the animation is in a non-standard state. If the target is lost while the current state is default, there is no problem.
Please, help me.