how to get a click in unity code example
Example: unity click object
void OnMouseDown()
{
// this object was clicked - do something
Destroy (this.gameObject);
}
void OnMouseDown()
{
// this object was clicked - do something
Destroy (this.gameObject);
}