private void Hidden(bool isShow) { if (CtrlManager.GetCtrl <MainBgCtrl>(WindowID.MainBg) != null && CtrlManager.GetCtrl <MainBgCtrl>(WindowID.MainBg).uiWindow != null) { CtrlManager.GetCtrl <MainBgCtrl>(WindowID.MainBg).uiWindow.gameObj.SetActive(isShow); } }
private void DoPopView(PopViewParam param) { CtrlManager.OpenWindow(WindowID.NewPopView, null); NewPopView ctrl = CtrlManager.GetCtrl <NewPopView>(WindowID.NewPopView); if (ctrl != null) { ctrl.SetParam(param); } }