Animation problem for looping..

hello there i have a simple animation code here

function Start()
{

var clip: AnimationClip = new AnimationClip();  
var event: AnimationEvent = new AnimationEvent();

clip.AddEvent(event);

}

function Update(){

  if(MoveAround.Anim_Check > 0)
		{
		animation.Play("Hit_Anim");
		}

}

code works great but animation is looping i need to animation Anim_Check > 0

play it and stop it but loop forever i change the animation loop to once but nothing happend any ideas?

8 hour ? :frowning:

Maybe this can help.It helped me with my game

but ur using on animation input command

my problem is tank if hit one time animation play one time if try this

animation[“shoot”].wrapMode = WrapMode.Once;

nothing happend :confused:

ok i solved this

gameObject.SampleAnimation(animation.clip, 0);