Input.GetMouseButtonDown(0) works on Android?

Do you know if this statement works out on Android ?

void Update{
          if(Input.GetMouseButtonDown(0)){
                Destroy(cube);
          }
}

You could change it to this:

if (Input.touches.Any(x=>x.phase==TouchPhase.Began)){
    Destroy(cube);
}

Yes, the Input methods like GetMouseButton() and GetMouseButtonDown() etc. work on Android and other touchscreens.

However, events like OnMouseDown() aren’t called on mobile devices.

if anyone still looking for answere.
Instead on Input.getMouseButtonDown() you can use Input.getButtonDown(“Fire1”) and so on . It works great on mobile and pc.