WarningPopUpController.cs 473 B

12345678910111213141516171819
  1. using UnityEngine;
  2. public class WarningPopUpController :MonoBehaviour
  3. {
  4. private void Start()
  5. {
  6. Invoke("Active",3);
  7. }
  8. private void Active()
  9. {
  10. // 关闭加载界面
  11. if(InstantiateSystem.Instance.objDic.TryGetValue("LoadingPanel(Clone)",out GameObject LoadingPanel))
  12. {
  13. if (LoadingPanel.activeSelf)
  14. LoadingPanel.SetActive(false);
  15. }
  16. Destroy(gameObject);
  17. }
  18. }