home打开关闭逻辑修改调整提交
This commit is contained in:
@@ -17,6 +17,17 @@ namespace NBF
|
||||
|
||||
protected override void OnShow()
|
||||
{
|
||||
InputManager.OnUICanceled += OnUICanceled;
|
||||
}
|
||||
|
||||
private void OnUICanceled(string action)
|
||||
{
|
||||
if (action == InputDef.UI.Back)
|
||||
{
|
||||
var panel = UI.Inst.GetUI<HomePanel>();
|
||||
if (panel != null && panel.IsShowing) return;
|
||||
HomePanel.Show();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnUpdate()
|
||||
@@ -60,6 +71,7 @@ namespace NBF
|
||||
|
||||
protected override void OnHide()
|
||||
{
|
||||
InputManager.OnUICanceled -= OnUICanceled;
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
|
||||
Reference in New Issue
Block a user