using UnityEngine; using System.Collections; public class Done_DestroyByBoundary : MonoBehaviour { void OnTriggerExit (Collider other) { Destroy(other.gameObject); } }