using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ControlTest : MonoBehaviour {

	public Vector3 controlPosition;
	public float controlFactor;
	public float xPosition;

	void Start () {
		xPosition = transform.position.x;
		
	}

	void FixedUpdate () {
		controlPosition = new Vector3 (xPosition, Input.GetAxis("Horizontal") * controlFactor, Input.GetAxis("Vertical") * controlFactor);
		transform.position = controlPosition;
		Debug.Log (controlPosition);
	}
}
