unity click object
private void OnMouseOver() {
Debug.Log("Hovering over GameObject");
}
3.5
2
void OnMouseDown()
{
// this object was clicked - do something
Destroy (this.gameObject);
}
Thank you!
2
0
Are there any code examples left?
New code examples in category C#