2 d アニメーション

I will ask you a question

I am creating 2d game, and when I make one animation clip (walking motion), the enemy moves to the left and right. When I make another animation clip (attack motion) and try to make a transition with the animator, but Suddenly the enemy stopped moving, I tried to attach animators to the root motion and the empty object, etc., but I can not do it well. I dont’ know what to do , please help

I was trying to move the enemy by applying power with rigid body 2d

139372-b6j72-6qv39.gif

I’m not good at English
I can not reply immediately

Do you have the script?
スクリプトをかださい