How do I destroy a gameobject when ever I click the right mouse button? Please Help
This one is an easy one. Attach this script tot the object you want to destroy:
if (Input.GetMouseButtonDown(1)) {
Destroy(gameObject);
}
Hope that helps! Klep
How do I destroy a gameobject when ever I click the right mouse button? Please Help
This one is an easy one. Attach this script tot the object you want to destroy:
if (Input.GetMouseButtonDown(1)) {
Destroy(gameObject);
}
Hope that helps! Klep