using UnityEngine;
using System.Collections;

public class ParallaxBackground : MonoBehaviour {
	public float worldCenter = 50f;
	public float horizontalRadius = 50f;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		Vector3 cameraPos = Camera.main.transform.position;
		transform.localPosition = new Vector3((worldCenter - cameraPos.x) / (worldCenter*2), -1f, 100f);
	}
}
