fix:确保main场景单独可以运行
parent
e300dfb9a3
commit
afd7983467
|
@ -49,8 +49,13 @@ namespace UnityTest.ZXL
|
|||
|
||||
private async ETTask DialogueAsync() //
|
||||
{
|
||||
var uiBg = GameObject.Find("ZXL").GetComponent<UI_BG>();
|
||||
var go = GameObject.Find("ZXL");
|
||||
UI_BG uiBg = null;
|
||||
if (go)
|
||||
{
|
||||
uiBg = go.GetComponent<UI_BG>();
|
||||
uiBg.ShowBG();
|
||||
}
|
||||
|
||||
var showUI = UIManager.Instance().ShowUI(UIType.Dialogue);
|
||||
var dialogueUI = showUI as DialogueUI;
|
||||
|
@ -62,6 +67,7 @@ namespace UnityTest.ZXL
|
|||
|
||||
EventManager.Instance.FireNow(this, new ProcessOverEventArgs(processType));
|
||||
UIManager.Instance().HideUI(UIType.Dialogue);
|
||||
if (go)
|
||||
uiBg.HideBG();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue