How to disable Touch in object when animation plays?

Hello Im making a unity mobile android app, and my question is how would i disable touch on a certain object when its animation is playing? because when my animation plays, I can rotate my gameobject freely. how would I disable the touch on the gameobject?

A close answer to Sundar’s comment.

See the section where you checking for you touch input.

void Update () 
{
	if(!animation.isPlaying)
	{
        // check your touch here     
		if(Input.GetTouch(0))
		{
				
		}
	}
}