Hello! I move the walking Persian with this:
player.transform.position += player.transform.forward * speed * Time.deltaTime; Naturally, I set the speed myself. The walking Persian comes up against the collider and stops, continuing to walk. How to find out that he stopped moving, in order to change the animation depending on the speed. It seems I am doing unacceptable ...
OnTriggerEnterat the collider or evenOnCollisionEnter.... and see if thetagobject that thePlayercrashed into, then sendSendMessageto the player script ... to the method .. which is responsible for switching the animation, etc. - Alexey Shimansky