I would like to create scenarios that could be destroyed, but how?? For example, when a car hit a wall, the wall would be destroyed, help me please ...
Thx in Advance
I would like to create scenarios that could be destroyed, but how?? For example, when a car hit a wall, the wall would be destroyed, help me please ...
Thx in Advance
Use this piece of code to destroy a gameObject. To add conditions use if functions.
This page has code that might be just what you want http://unity3d.com/support/documentation/ScriptReference/Collider.OnCollisionEnter.html