Beispiel #1
0
 /// <summary>
 /// 关闭UI
 /// </summary>
 /// <param name="UI">目标UI</param>
 public void CloseUIWindow(UIWindowBase UI, GameFrameworkAction <UIWindowBase> callback = null)
 {
     if (!UI.GetActive())//如果关闭
     {
         return;
     }
     m_UILayerManagerCom.RemoveUI(UI);
     callback.InvokeGracefully <UIWindowBase>(UI);
     UI.OnCloseUI();
     UI.SetActive(false);
 }