fix
This commit is contained in:
parent
52deecb22a
commit
e1020fd308
@ -12,14 +12,14 @@ namespace AlicizaX.UI
|
||||
private void Awake()
|
||||
{
|
||||
_holderObjectBase = GetComponent<UIHolderObjectBase>();
|
||||
_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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user