Character animation

I have created a character using cubes, spheres and cylinder. I am not able to do leg animation perfectly. Basically what i am doing is for every leg i am creating a new script and a new animation. Is this the suitable way? If I am doing right how to simultaneous animation. Like first left leg and then right leg.

My script looks like this.

void Update () 
	{
		if(Input.GetKey(KeyCode.UpArrow))
		{
			animation.Play("LeftLeg");
        }
    }

No, it’s very unusual. People usually animate whole character (read: both legs) in single animation.

Unless you’re doing it for some special reason.