fix
This commit is contained in:
parent
52deecb22a
commit
e1020fd308
@ -12,14 +12,14 @@ namespace AlicizaX.UI
|
|||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
_holderObjectBase = GetComponent<UIHolderObjectBase>();
|
_holderObjectBase = GetComponent<UIHolderObjectBase>();
|
||||||
_holderObjectBase.OnWindowShowEvent += BindHotKeys;
|
_holderObjectBase.OnWindowBeforeShowEvent += BindHotKeys;
|
||||||
_holderObjectBase.OnWindowClosedEvent += UnBindHotKeys;
|
_holderObjectBase.OnWindowBeforeClosedEvent += UnBindHotKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
_holderObjectBase.OnWindowShowEvent -= BindHotKeys;
|
_holderObjectBase.OnWindowBeforeShowEvent -= BindHotKeys;
|
||||||
_holderObjectBase.OnWindowClosedEvent -= UnBindHotKeys;
|
_holderObjectBase.OnWindowBeforeClosedEvent -= UnBindHotKeys;
|
||||||
}
|
}
|
||||||
|
|
||||||
[SerializeField] private UXHotkeyButton[] hotButtons;
|
[SerializeField] private UXHotkeyButton[] hotButtons;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user