using UnityEngine;
using System.Collections;

public class MenuScroll : MonoBehaviour 
{
	public float maxDistance;

	void Start ()
	{
	}

	void Update ()
	{
		float widthZeroOne = (Input.mousePosition.x / Screen.width) - 0.5f;
		float heightZeroOne = (Input.mousePosition.y / Screen.height) - 0.5f;
		transform.position = new Vector3(widthZeroOne * maxDistance, heightZeroOne * (maxDistance/2), transform.position.z);
	}
}
