VirtualFramework/Assets/Scripts/LaunchLoading.cs

27 lines
547 B
C#
Raw Normal View History

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