refactor(UI):完善对于各个界面的管理逻辑,esc可以直接关闭所有的顶层UI

This commit is contained in:
2025-10-27 21:41:25 +08:00
parent 1462f4689e
commit 4951f25187
21 changed files with 18049 additions and 6374 deletions

View File

@@ -31,7 +31,7 @@ namespace UI
public void OnBeginEdit(GameObject target)
{
this.gameObject.SetActive(true);
UIManager.Instance.OpenUI<PlayerEditViewer>();
if (target == null)
{
if (noEditableTargetPanel != null)
@@ -46,8 +46,7 @@ namespace UI
public void OnEndEdit(GameObject target)
{
this.gameObject.SetActive(false);
UIManager.Instance.CloseUI<PlayerEditViewer>();
ClearComponentUI();
if (noEditableTargetPanel != null)
{