How do i change attack animations while blocking

I’m having trouble programming my attack script so that when the right mouse button is held and the left mouse button is clicked a different attack animation is played. Rather than a standard sword swing, the character does a quick stab from behind his shield. how do i program this?

What is exactly that you’re asking? How to understand if both buttons are clicked?

void Update()
{
	if (Input.GetMouseButton(0) && Input.GetMouseButtonDown(1))
	{
		// held left-button and clicked right-button
	}
	else if (Input.GetMouseButtonDown(0))
	{
		// clicked left-button
	}
	else if (Input.GetMouseButtonDown(1))
	{
		// clicked right-button
	}
}