// Use this for initialization
    void Start()
    {
        m_model = Context.model;
        SetModel(m_model);

        RegisterKeyEventCallback("show_unit_list", () =>
        {
            m_bEvent = true;
        });


        // ページ切り替え用トグルの設定
        Context.Toggle = GetComponent <Toggle>();
        ToggleGroup toggleGroup = GetComponentInParent <ToggleGroup>();

        if (toggleGroup != null)
        {
            Context.Toggle.group = toggleGroup;
        }


        // コールバック設定
        PartyParamPanel partyParam = GetComponentInParent <PartyParamPanel>();

        if (partyParam != null)
        {
            Context.Toggle.onValueChanged.AddListener(partyParam.OnChangedPartyParam);
        }
    }
    protected override void PageSwitchSetting(bool initalize)
    {
        base.PageSwitchSetting(initalize);

        m_IsRequestedApi = false;

        //--------------------------------
        //	オブジェクトの取得
        //--------------------------------
        m_PartySelectGroup = m_CanvasObj.GetComponentInChildren <PartySelectGroup>();
        m_PartySelectGroup.SetPositionAjustStatusBar(new Vector2(0, -132));
        m_PartySelectGroup.SetSizeParfect(new Vector2(0, 128));

        m_PartyParamPanel = m_CanvasObj.GetComponentInChildren <PartyParamPanel>();
        m_PartyParamPanel.SetPositionAjustStatusBar(new Vector2(0, -280));

        m_PartySelectButtonPanel = m_CanvasObj.GetComponentInChildren <PartySelectButtonPanel>();
        m_PartySelectButtonPanel.SetPositionAjustStatusBar(new Vector2(0, -714));

        // パーティ一覧の描画
        if (m_UnitPartyCurrent == DefaultUnitPartyCurrent)
        {
            m_UnitPartyCurrent = UserDataAdmin.Instance.m_StructPlayer.unit_party_current;
        }

        CreatePartyList();
        CreatePartyParam();
        m_PartyAssignLength = UserDataAdmin.Instance.m_StructPartyAssign.Length;

        // 下部ボタン
        m_PartySelectButtonPanel.IsActiveMemberSettingButton = true;
        m_PartySelectButtonPanel.MemberSettingButtonText     = GameTextUtil.GetText("party_button");
        m_PartySelectButtonPanel.MemberSettingAction         = OnSelectMovePartyAssign;
        m_PartySelectButtonPanel.SetUpButtons(false);

        SetUpAppearAnimation();

        MainMenuManager.Instance.currentCategory = MAINMENU_CATEGORY.UNIT;

        StartCoroutine(sohwArrow(() =>
        {
            MainMenuParam.m_PartySelectIsShowLinkUnit = MainMenuParam.m_PartySelectShowedLinkUnit;
            MainMenuParam.m_PartySelectShowedLinkUnit = false;
            m_PartyParamPanel.SetUpLinkUnit(MainMenuParam.m_PartySelectIsShowLinkUnit);
        }));
    }