Hi guys, I need help

Options
I've been stuck trying to make a mobile game for 7 days now.
i can connect with multiple players but i can't get them to move, the game is mobile, so i should add a controller with ui buttons, but i can't.
Below I am sending you the code written for the movement of the player, I hope someone can help me.
Thanks in advance for any replies.
(ps. I also wrote the same code to move the player from the keyboard, that works perfectly, but when I have to make it mobile via the controller no ... doing tests I noticed that the buttons are impossible to press when the player is spawned, is there a way to make the keyboard gesture script usable with ui buttons?)


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


public class JumpMobile1 : Photon.MonoBehaviour
{
public Rigidbody2D rb;
public PhotonView photohView;
public Text nametag;

public SpriteRenderer sr;
public GameObject palyerrcamera;
public float velocita = 5;
private bool moveLeft;
private bool moveRigth;
private float horizontalMove;
public float jumpSpeed = 5;


// Start is called before the first frame update
void Start()
{

moveLeft = false;
moveRigth = false;
}

// Update is called once per frame
void Update()
{
if (photonView.isMine)
{

Moovment();

}
}




public void PointerDownLeft()
{
moveLeft = true;
}
public void PointerUpLeft()
{
moveLeft = false;
}
public void PointerUpRigth()
{
moveRigth = false;
}
public void PointerDownRight()
{
moveRigth = true;
}
private void Moovment()
{

if (moveLeft)
{
horizontalMove = -velocita;
photonView.RPC("FlipTrue", PhotonTargets.AllBuffered);
}
else if(moveRigth)
{
horizontalMove = velocita;
photonView.RPC("FlipFalse", PhotonTargets.AllBuffered);
}
else
{
horizontalMove = 0;
}
}

public void Jump()
{
if (rb.velocity.y == 0)
{

rb.velocity = Vector2.up * jumpSpeed;

}
}
private void Awake()
{
if (photonView.isMine)
{
palyerrcamera.SetActive(true);
nametag.text = PhotonNetwork.playerName;
}
else
{
nametag.text = photonView.owner.name;
nametag.color = Color.cyan;
}
}
[PunRPC]

private void FlipFalse()

{
sr.flipX = false;

}
[PunRPC]

private void FlipTrue()

{
sr.flipX = true;
}
private void FixedUpdate()
{
rb.velocity = new Vector2(horizontalMove, rb.velocity.y);
}
}

I also attach some links of some screeschot which could be useful

ddddd.png

dsadas.png

jmp.png

left.png

right.png
https://i.postimg.cc/MGSb5Kmy/dda.png