Merge branch 'master' into LouDi_Quan

This commit is contained in:
shenjianxing 2024-12-30 16:29:47 +08:00
commit 9b1aa34bb6
2 changed files with 13 additions and 1 deletions

View File

@ -247,6 +247,18 @@ UIKit.HidePanel(""UIHomePanel"");
panelSearchKeys.Recycle2Cache();
}
public static void HidePanel(Type type)
{
var panelSearchKeys = PanelSearchKeys.Allocate();
panelSearchKeys.PanelType = type;
UIManager.Instance.HideUI(panelSearchKeys);
panelSearchKeys.Recycle2Cache();
}
#if UNITY_EDITOR
[MethodAPI]
[APIDescriptionCN("关闭全部界面")]

View File

@ -53,7 +53,7 @@ public class UIShowAction : IAction
}
else
{
UIKit.ClosePanel(ActionHelper.typeDict[uiName]);
UIKit.HidePanel(ActionHelper.typeDict[uiName]);
this.Finish();
}
}