When I instantiate this prefab i have a code attached that deletes certain parts, when i then instantiate another copy the pieces removed from the previous instance are also missing from the new instance.
#pragma strict
function Start() {
yield WaitForSeconds (0.1);
Destroy (this);
}
function OnTriggerEnter(collision: Collider) {
if (collision.gameObject.tag == "Real") {
Destroy(gameObject);
}
}
The code in question