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