

function Update () {
	
	if (Input.GetKey (KeyCode.W) || Input.GetKey (KeyCode.S) || Input.GetKey (KeyCode.A) || Input.GetKey (KeyCode.D))
	{
		animation.Play("run");	
	}	
	else
	{
		if (Input.GetKey (KeyCode.UpArrow) || Input.GetKey (KeyCode.DownArrow) || Input.GetKey (KeyCode.LeftArrow) || Input.GetKey (KeyCode.RightArrow))
		{
		animation.Play("run");		
		}	
		else
		{
			animation.Play("idle");	
		}	
		
	}	
	
}


