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