refactor(UI):完善对于各个界面的管理逻辑,esc可以直接关闭所有的顶层UI
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user