using UnityEngine;
using System.Collections;

public class FolowCameraScript : MonoBehaviour {

	public float offset = 1.0f;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		GameObject theCam = GameObject.Find("Main Camera");

		transform.position = new Vector3 (theCam.transform.position.x * offset, transform.position.y, transform.position.z);
	}
}
