How to make shooting on android?

    public Button Shot;

    public float range = 15;
    public float damade = 21;
    public float fireRate = 1;

    public ParticleSystem muzzleFlash;
    public AudioClip shotSFX;
    public AudioSource _audiosorse;

    private float nextFire = 0f;


    public Camera _cam;



    private void Start()
    {
        Shot = GameObject.Find("Shot").GetComponent<Button>();
        Shot.onClick.AddListener(Shoot);
    }

    public void Shoot()
    {
        RaycastHit hit;
        if (Physics.Raycast(_cam.transform.position, _cam.transform.forward, out hit, range))
        {;
            Debug.Log("Popal");
        }
    }

How to make shooting on android?
I watched a lot of videos but they were all on the computer.
One of the problems is that in Update I have to write Input.GetButtonDown but that only works on PC. And input.Touch is not suitable, or I’m not using it correctly.
I was able to do partly working shooting, but it happens once when the button is pressed, but it is necessary while I hold down the button, and for this I need to write lines in Update.

I have a few simple touch shooter examples in my Proximity Buttons package.

The DemoTwinStickShooter scene contains a touch-capable twinstick shooter you can build to Android and it will just work as-is.

Same goes for DemoSpaceShooter scene, which might be more to your design.

proximity_buttons is presently hosted at these locations:

https://bitbucket.org/kurtdekker/proximity_buttons

Thank you, I’ll watch right now

Sorry. I can’t find the scene.
8676540--1169463--upload_2022-12-20_18-15-38.png

Sounds like you didn’t get the project then.

I just looked on github and they’re both present, both spelled precisely as I noted above.

I found. I’m sorry. I use it for the first time.