public void ChangePanel(GameObject go, IUIRect parent, IUIPanel panel) { UIPanel uIPanel = panel as UIPanel; UIRect parent2 = parent as UIRect; if (uIPanel != null) { NGUITools.ParentPanelChanged(go, parent2, uIPanel); } }
public void ChangePanel(GameObject go, IUIRect parent, IXUIPanel panel) { XUIPanel xUIPanel = panel as XUIPanel; UIRect parent2 = parent as UIRect; if (xUIPanel != null) { NGUITools.ParentPanelChanged(go, parent2, xUIPanel.UIComponent as UIPanel); } }