Something
public text v1 · immutableusing 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);
}
}