using System.Collections;
using System.Collections.Generic;
public class PlayerControl : MonoBehaviour
[SerializeField] float moveSpeed;
horizontal = Input.GetAxis("Horizontal");
transform.Translate(Vector3.right * moveSpeed);
transform.Translate(Vector3.left * moveSpeed);