how to make the animation stop after clip end ?

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");
        }

you can set an animation event in animations last frame
animationEvents