How to make a player character move along the Y axis and move forward auto in android game?

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

public class movement2D : MonoBehaviour
{
Rigidbody2D body;

private Rigidbody2D rb;
private Vector2 moveV;


void Start()
{
    body = GetComponent<Rigidbody2D>();
}

void Update()
{
    Vector2 moveInput = new Vector2(0, Input.GetAxisRaw("horizontal"));
    moveV = moveInput * speed;
}

private void FixedUpdate()
{
   
 
    transform.position += Vector3.right * Time.deltaTime * 10;

    rb.MovePosition(rb.position + moveV * Time.fixedDeltaTime);
}

}

It’s probably much better if you don’t have the plane and the camera move to the right and instead have the other objects in the scene move to the left to simulate forward motion of the player. Otherwise you have a whole bunch of stuff that depends on the position of the player which can be hard to manage. Plus, moving objects and enemies to the left makes it really easy to figure out when to destroy them. Just do so once they are off screen.