增加自动关闭功能
This commit is contained in:
parent
d21e1fcd8c
commit
1642e93d06
@ -4,6 +4,8 @@ using QFramework;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
using static OperationController;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace QFramework.Example
|
namespace QFramework.Example
|
||||||
{
|
{
|
||||||
@ -20,10 +22,16 @@ namespace QFramework.Example
|
|||||||
{
|
{
|
||||||
|
|
||||||
mData = uiData as UITextTipData ?? new UITextTipData();
|
mData = uiData as UITextTipData ?? new UITextTipData();
|
||||||
|
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenGameObjectDestroyed(this);
|
||||||
|
|
||||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnStepChanged(StepStatusOnChange change)
|
||||||
|
{
|
||||||
|
Hide();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnOpen(IUIData uiData = null)
|
protected override void OnOpen(IUIData uiData = null)
|
||||||
{
|
{
|
||||||
mData = uiData as UITextTipData ?? new UITextTipData();
|
mData = uiData as UITextTipData ?? new UITextTipData();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user