using UnityEngine; public class WarningPopUpController :MonoBehaviour { private void Start() { Invoke("Active",3); } private void Active() { // 关闭加载界面 if(InstantiateSystem.Instance.objDic.TryGetValue("LoadingPanel(Clone)",out GameObject LoadingPanel)) { if (LoadingPanel.activeSelf) LoadingPanel.SetActive(false); } Destroy(gameObject); } }