How to start animation of the another GO

I have a script on my player. After entering the trigger I want to start animation of the door, which is another game object.
But I know only how to do that on the current GO.

void OnTriggerEnter(Collider collider)
	{
		switch (collider.name)
		{
		case "DoorCollider":
			animation.Play("LeftDoor"); //?
			break;
		}
	}

you need to get door animation component and play from there

collider.gameObject.GetCompontent<Animation>().Play("yourAnimation");