private void CreateUI_Internal(GameObject go, UIInfoBase uiNode, Bridge bridge, Transform parent, IUIPanel parentPanel) { if (go == null) { return; } var parentDic = GetParentDic(parent); Utility.SetTranform(go.transform, uiNode.type.layer, uiNode.type.layerIndex, Trans, parent, parentDic, transRefDic); go.name = uiNode.panelName; go.SetActive(true); IUIPanel panel = GetPanelFromPool(go); InitPanelInformation(panel, uiNode); panel.Binding(go); panel.HandleData(bridge); transRefDic.Add(go.transform.GetInstanceID(), panel); createdPanels.Add(panel); if (parentPanel != null) { parentPanel.RecordChild(panel); } if (bridge != null) { bridge.OnCreatePanel(panel); } HandBridgeOptions(panel, bridge); }