using UnityEngine; public class Ef_Destory : MonoBehaviour { public float time; private void Start() { Object.Destroy(base.gameObject, time); } }