VirtualFramework/Assets/Scripts/LaunchLoading.cs
2025-03-27 15:48:22 +08:00

27 lines
559 B
C#

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;
StringEventSystem.Global.Register("CloseDefaultLoading", OnUIRootCreated);
}
private void OnUIRootCreated()
{
gameObject.SetActive(false);
}
private void OnDestroy()
{
StringEventSystem.Global.UnRegister("CloseDefaultLoading", OnUIRootCreated);
}
}