I want make the animation clip stop when the clip end,
now it’s stop in the point of button up.
I use this code :
function Update ()
{
if (Input.GetMouseButtonDown(0))
{
animation.Play("Shoot01");
}
if (Input.GetMouseButtonUp(0))
{
animation.Stop("Shoot01");
}