Exemple #1
0
    /// <summary>
    /// サブタブ構築
    /// </summary>
    /// <param name="_seq"></param>
    private void setupSubTab(MAINMENU_SEQ _seq)
    {
        IsViewTabList = true;
        TabGroupList.Clear();
        scrollRect.content.anchoredPosition = new Vector2(0.0f, scrollRect.content.anchoredPosition.y);
        switch (m_SubMenuType)
        {
        case SUB_TAB_MENU_TYPE.FRIEND:
            //case SUB_TAB_MENU_TYPE.HELP:
            setupSubTabFriend(_seq);
            break;

        case SUB_TAB_MENU_TYPE.SCRATCH:
            setupSubTabScratch(_seq);
            break;
        }
    }
Exemple #2
0
    /// <summary>
    /// サブタブ設定
    /// </summary>
    /// <param name="_seq"></param>
    public void SetSubTab(MAINMENU_SEQ _seq)
    {
        SUB_TAB_MENU_TYPE _next = getSubTabType(_seq);

        if (_next == SUB_TAB_MENU_TYPE.NONE)
        {
            TabGroupList.Clear();
            m_SubMenuType = SUB_TAB_MENU_TYPE.NONE;
            StartCoroutine(TabClearWait());
        }
        else if (m_SubMenuType != _next || m_IsRestTabs == true)
        {
            m_SubMenuType = _next;
            setupSubTab(_seq);
            m_IsRestTabs = false;
        }
        else
        {
            changeSubTab(_seq);
        }
    }