diff --git a/Assets/Scripts/UILongPicture/UIChangeOperation.cs b/Assets/Scripts/UILongPicture/UIChangeOperation.cs index 95ef2a45..dde06e65 100644 --- a/Assets/Scripts/UILongPicture/UIChangeOperation.cs +++ b/Assets/Scripts/UILongPicture/UIChangeOperation.cs @@ -2,6 +2,7 @@ using UnityEngine; using UnityEngine.UI; using QFramework; using TMPro; +using static OperationController; namespace QFramework.Example { @@ -14,6 +15,8 @@ namespace QFramework.Example Button curBtn; protected override void OnInit(IUIData uiData = null) { + TypeEventSystem.Global.Register(OnModuleQuit).UnRegisterWhenGameObjectDestroyed(gameObject); + mData = uiData as UIChangeOperationData ?? new UIChangeOperationData(); // please add init code here for (int i = 0; i < Content.childCount; i++) @@ -48,10 +51,18 @@ namespace QFramework.Example protected override void OnHide() { + + + } protected override void OnClose() { + + } + public void OnModuleQuit(OnModuleQuit arg) + { + Hide(); } } } diff --git a/Data/Xml/01_ShiYanLiLunRenZhi.xml b/Data/Xml/01_ShiYanLiLunRenZhi.xml index dd6ec1b1..af354031 100644 --- a/Data/Xml/01_ShiYanLiLunRenZhi.xml +++ b/Data/Xml/01_ShiYanLiLunRenZhi.xml @@ -25,6 +25,9 @@ + + +