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