using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PleyerControl : MonoBehaviour {
public float speed = 20f;
private Rigidbody2D rb;
void Start () {
rb = GetComponent <Rigidbody2D> ();
}
void Update () {
float moveX = Imput.GetAxis ("Horizontal");
rb.MovePosition (rb.position + Vector2.right * moveX * Time.deltaTime);
}
}