object mouse click 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);
}