Making an object drop when screen is touched

Alright so I’m having a bit of trouble with making an object floating on the screen fall when I touch the screen (on a mobile device)

I’m a beginner with code and I haven’t been able to find a solution online as to how to make this possible.

Could anyone help me please?

Thanks.

attach this script to an empty gameObject with 2d Collider attached… Scale it up to fit the whole screen.

public GameObject player; //attach player gameObject to this

void OnMouseDown(){

player.GetComponent().gravityScale=0;

}