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 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);
}
}