Exemplo n.º 1
0
    public void Initialize(CsvChapterParam _param)
    {
        m_iScriptId     = _param.script_id;
        m_chapterBanner = PrefabManager.Instance.MakeScript <ChapterBanner> ("prefab/ChapterBanner", gameObject);
        m_chapterBanner.Initialize(_param);

        if (m_chapterBanner.m_bAble == false)
        {
            m_lbText.text = "まだこのチャプターは\n開始できません";
            m_btnYes.gameObject.SetActive(false);
        }
        m_eStep    = STEP.IDLE;
        m_eStepPre = STEP.MAX;
    }
Exemplo n.º 2
0
    public override void PageStart()
    {
        m_eStep    = STEP.IDLE;
        m_eStepPre = STEP.MAX;
        base.PageStart();
        m_lbTitle.text = "チャプター選択";
        m_closeButton  = PrefabManager.Instance.MakeObject("prefab/CloseButton", gameObject).GetComponent <ButtonBase>();
        m_closeButton.TriggerClear();
        if (m_btnManager == null)
        {
            m_btnManager = gameObject.AddComponent <ButtonManager> ();
        }
        m_btnManager.ButtonRefresh();

        foreach (CsvChapterParam param in DataManager.Instance.csv_chapter.list)
        {
            ChapterBanner script = PrefabManager.Instance.MakeScript <ChapterBanner> ("prefab/ChapterBanner", m_grid.gameObject);
            script.Initialize(param);
            m_btnManager.AddButtonBase(script.gameObject);
        }
        m_btnManager.ButtonInit();
        NendAdInterstitial.Instance.Show();
    }