From 797ab0c8438b9aa495123f04d5a9c3edf2e3e652 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Thu, 21 Nov 2024 16:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9destroy=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AxibugEmuOnline.Client/Assets/Script/UI/MenuItemController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/MenuItemController.cs b/AxibugEmuOnline.Client/Assets/Script/UI/MenuItemController.cs index 7a67fca..8c4fdbd 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/MenuItemController.cs +++ b/AxibugEmuOnline.Client/Assets/Script/UI/MenuItemController.cs @@ -92,7 +92,7 @@ namespace AxibugEmuOnline.Client else CommandDispatcher.Instance.UnRegistController(this); - if(!value) + if (!value) ResetPulsInvoker(); } } @@ -100,7 +100,7 @@ namespace AxibugEmuOnline.Client public abstract void Init(List menuDataList); - private void OnDestroy() + protected override void OnDestroy() { if (CommandDispatcher.Instance != null) CommandDispatcher.Instance.UnRegistController(this);