using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestroyShow2D : MonoBehaviour { public GameObject show; void OnTriggerEnter2D(Collider2D other) { show.SetActive(true); Destroy(gameObject); } }