using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public float PlayerSpeed; void Update () { //move player left/right float amountToMoveLR = Input.GetAxis("Horizontal") * PlayerSpeed * Time.deltaTime; transform.Translate(Vector3.right * amountToMoveLR); } }