27 lines
547 B
C#
27 lines
547 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("UIRootCreated", OnUIRootCreated);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void OnUIRootCreated()
|
||
|
|
{
|
||
|
|
gameObject.SetActive(false);
|
||
|
|
}
|
||
|
|
private void OnDestroy()
|
||
|
|
{
|
||
|
|
StringEventSystem.Global.UnRegister("UIRootCreated", OnUIRootCreated);
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|