error with destroy by boundary

working on unity space shooter tutorial using unity 5.3.5, having issues with destroy by boundary section. wrote script to destroy bolt after firing. only fires once won’t respawn after. still new to unity, love it so far :slight_smile: video is a little confusing since it’s outdated

using UnityEngine;
using System.Collections;

public class DestroyByBoundary : MonoBehaviour
{
void OnTriggerExit (Collider other)
{
Destroy(other.gameObject);
}
}

Hi Guys I have found a solution for that hope it helps especially for people who have upgraded unity to version 5.0 and above.

instead of adding the script to boundary use self destroy function of prefab in the space shooter tutorial for boundary 8th video uploaded by unity official.
for reference check the below imagealt text