using UnityEngine; public class destroy : MonoBehaviour { private void Start() { Object.Destroy(base.gameObject, 10f); } private void Update() { } }