27 lines
559 B
C#
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);
|
|
|
|
}
|
|
}
|