i have this java script that does what i need however i cant figure out how to stop the animation looping after it has played once.
var animation_bool : boolean ;
function Update()
{
if(animation_bool == true)
{
animation.Play("Sword_Swing1");
}
if(Input.GetButtonDown("mouse0"))
{
animation_bool = true;
}
}