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