When animation is playing, animation is cut.

I make a animation is called “hurt”.

When the boy collides B (the cube), the boy will doing “hurt” animation.

But animation seems like flashing and see unclear.

I think when animation is playing, animation is cut…

Refer to hurt2’s link: http://www.facebook.com/video/video.php?v=226491344033506

My code:

function OnTriggerStay(other : Collider){
if (other.gameObject.tag == "pass" )  {
Destroy (other.gameObject);

But when I put “name@hurt” animation (setting loop) into scene, hurt animation seem like success.

Refer to hurt1’s link: http://www.facebook.com/video/video.php?v=226490747366899

Why animation is cut? Because I add “destory” in behind of my code?

What method can let animation success and isn’t cut?

Thanks everybody!

I think…because I add “destory” in behind of code.
When animation isn’t finish, destory is just break off animation.
What’s a method can let animation finish before destory break off?