From e1020fd308250032002565cb000c0c1e28ec4e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Wed, 17 Dec 2025 14:30:37 +0800 Subject: [PATCH] fix --- Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs b/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs index 8115b8b..1731c96 100644 --- a/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs +++ b/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs @@ -12,14 +12,14 @@ namespace AlicizaX.UI private void Awake() { _holderObjectBase = GetComponent(); - _holderObjectBase.OnWindowShowEvent += BindHotKeys; - _holderObjectBase.OnWindowClosedEvent += UnBindHotKeys; + _holderObjectBase.OnWindowBeforeShowEvent += BindHotKeys; + _holderObjectBase.OnWindowBeforeClosedEvent += UnBindHotKeys; } private void OnDestroy() { - _holderObjectBase.OnWindowShowEvent -= BindHotKeys; - _holderObjectBase.OnWindowClosedEvent -= UnBindHotKeys; + _holderObjectBase.OnWindowBeforeShowEvent -= BindHotKeys; + _holderObjectBase.OnWindowBeforeClosedEvent -= UnBindHotKeys; } [SerializeField] private UXHotkeyButton[] hotButtons;