I don't want it to register me holding my finger down, just one touch

void Update () {
        if (Input.touchCount > 0) {
            // The screen has been touched so store the touch
            Touch touch = Input.GetTouch(0);
           
            if (touch.phase == TouchPhase.Stationary || touch.phase == TouchPhase.Moved) {

it works fine, however, in my game it registers me holding down the screen, therefore, making multiple bullets fire out, when I just want it to register one touch for one bullet to fly out

I know how to do this with the GetButton and GetButtonDown commands for controllers etc but not sure what the equivalent is for touch controls? Couldn’t really find any good documentation anywhere. thanks

maybe put in another check for touch.phase == TouchPhase.Began

I never did touch stuff so I dont know if it will work, but I am assuming “Began” is similar to GetButtonDown, “Move” and “Stationary” is similar to GetButton, and “End” is similar to GetButtonUp.