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;