I have 2 cube Object on my android screen. Cube1 and Cube2. I will make this: if I touch on screen Cube1, then destroy Cube1. If I touch on screen Cube2, then destroy Cube2.
I searched a lot, but trying on yet unfortunately failed.
void OnMouseDown() {Destroy(gameObject);}
also works for iPhone and android … I have tested on devices and simulators