示例#1
0
    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);
        }
    }
示例#2
0
    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);
        }
    }