// 显示UI界面内部函数 private void ShowUI_Internal(UIInfo uiInfo, UILayer _layer, params object[] _params) { uiInfo.layer = _layer; UIBase ui = uiInfo.ui; // 显示UI Transform uiTrans = UIManager.Instance.GetUICanvas(_layer).transform; UIUtils.AddUIPrefab(uiTrans, ui.MyTrans); ui.gameObject.SetActive(true); // 初始化 ui.Init(_params); }