修复UI消失的bug
This commit is contained in:
parent
ce7876be96
commit
7f46db91b8
@ -247,6 +247,18 @@ UIKit.HidePanel(""UIHomePanel"");
|
|||||||
panelSearchKeys.Recycle2Cache();
|
panelSearchKeys.Recycle2Cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void HidePanel(Type type)
|
||||||
|
{
|
||||||
|
var panelSearchKeys = PanelSearchKeys.Allocate();
|
||||||
|
|
||||||
|
panelSearchKeys.PanelType = type;
|
||||||
|
|
||||||
|
UIManager.Instance.HideUI(panelSearchKeys);
|
||||||
|
|
||||||
|
panelSearchKeys.Recycle2Cache();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
[MethodAPI]
|
[MethodAPI]
|
||||||
[APIDescriptionCN("关闭全部界面")]
|
[APIDescriptionCN("关闭全部界面")]
|
||||||
|
|||||||
@ -53,7 +53,7 @@ public class UIShowAction : IAction
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UIKit.ClosePanel(ActionHelper.typeDict[uiName]);
|
UIKit.HidePanel(ActionHelper.typeDict[uiName]);
|
||||||
this.Finish();
|
this.Finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user