private void openWindow(UIPanelBase panel, bool active, params object[] paramsList) { Debuger.Log("begin open window and the pannel is " + panel.name); if (panel == null || panel.gameObject == null) { Debuger.LogError("the panel is null"); return; } if (g_LoadedWindow == null) { Debuger.LogError("the loaded window is null"); return; } // change window status if (active) { //DontUseThisShowPanel(panel, paramsList); } else { Debuger.Log("show window false and the panel name is " + panel.name); if (panel.gameObject.activeInHierarchy) { panel.OnClose(); panel.gameObject.SetActive(false); ManageActiveWindow(false, panel); } } }
public void ClosePanel(UIPanelBase panel) { panel.gameObject.SetActive(false); panel.isOpend = false; panel.OnClose(); }