2025-03-19 14:35:54 +08:00
|
|
|
using QFramework;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class LaunchLoading : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public static LaunchLoading instance;
|
|
|
|
|
private void Awake()
|
|
|
|
|
{
|
|
|
|
|
instance = this;
|
2025-03-27 15:48:22 +08:00
|
|
|
StringEventSystem.Global.Register("CloseDefaultLoading", OnUIRootCreated);
|
2025-03-19 14:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnUIRootCreated()
|
|
|
|
|
{
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
}
|
|
|
|
|
private void OnDestroy()
|
|
|
|
|
{
|
2025-03-27 15:48:22 +08:00
|
|
|
StringEventSystem.Global.UnRegister("CloseDefaultLoading", OnUIRootCreated);
|
2025-03-19 14:35:54 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|