Hi guys, I need you to come up with a code (the simplest possible one) to play a note on a collider2D by touching it (it is for android). I have this code to do the same thing but with a mouse.
void OnMouseDown() {
GetComponent<AudioSource>().Play();
}
Is there anything as simple as this? Like a “void ontouchdown” or something?, Thank you all in advance!!