Пример #1
0
    public void OpenPanel(PanelBase parent, UIPanelID id, OpenPanelType forParentType, bool waitAni)
    {
        Reset();

        panelID = id;

        SetParentPanel(parent);

        if (parent == null)
        {
            ShowPanel(forParentType);
            return;
        }

        if (waitAni)
        {
            parent.AddQuitAniCallBack(() => ShowPanel(forParentType));
        }
    }