2D Platformer Camera follow on y and continue to go right on x

I want my camera to keep moving right on the x Axis but i also want it to follow the player on the y axis answer please in C# as i am new to scripting and only know that

Add this to you cameraobject

using UnityEngine;
using System.Collections;

public class CameraMover : MonoBehaviour

	public Transform playerTrans; 	// Transfrom of the player
	public float xSpeed;			// The speed you want your camera to have

	void Update ()
		transform.Translate (new Vector3 (xSpeed * Time.deltaTime, transform.position.y - playerTrans.position.y, 0));

Good luck! :slight_smile: