using UnityEngine; public class Destroy : MonoBehaviour { private void Start() { Destroy(gameObject, 3f); } }