Jedność niszcz obiekt niewidoczny
//INSIDE ON YOUR OBJECT'S SCRIPT
void OnBecameInvisible() {
Destroy (this.gameObject);
}
Zarden
//INSIDE ON YOUR OBJECT'S SCRIPT
void OnBecameInvisible() {
Destroy (this.gameObject);
}
GetComponent(MeshRenderer).enabled = false;