|
Hello, I have a script that worked until I upgraded to Unity 3.2, and I cannot seem to find what is not working. Simply put, when the Projectile hits the object the scripts attached to, an explosion is instantiated ( this is working ) the object is destroyed ( also working ) and another unrelated object, in this case the "barrierToDestroy" is destroyed ( this isn't working ) I've tried everything I can think of but just can't get it to work. Any help is greatly appreciated, Thanks in Advance.
var barrierToDestroy : Transform; function OnTriggerEnter(hit : Collider) { if(hit.gameObject.tag == "Projectile") {
(comments are locked)
|
