using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShowDestroy : MonoBehaviour { public GameObject show; void OnTriggerEnter(Collider other) { show.SetActive(true); Destroy(gameObject); } }