using UnityEngine; public class WarningPopUpController :MonoBehaviour { private void Start() { Invoke("Active",3); } private void Active() { Destroy(gameObject); } }