質問がわかりにくくてすみません
シーン上に1つだけ2Dオブジェクトがあり
以下のスクリプトを貼り付けています
移動動作の途中で時々一瞬引っかかるような感じになります

public class test : MonoBehaviour
{
Vector2 pos;
// Start is called before the first frame update
void Start()
{
pos = transform.position;
}

// Update is called once per frame
void Update()
{
if (Input.GetKey("right"))
{
pos.x += 0.1f;
}
if (Input.GetKey("left"))
{
pos.x -= 0.1f;

}

transform.position = pos;
}
}