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

public class MoveWithInput : MonoBehaviour
{
    public Rigidbody rb;
    public float forceAmount = 500f;

    void Start()
    {
        
    }

    void Update()
    {
        if (Input.GetKey("a"))
        {
            rb.AddForce(forceAmount * Vector3.left * Time.deltaTime);
        }
    }
}
