Пример #1
0
    public override void Initialize()
    {
        Debug.Log("Initialize");
        if (m_bInitialized == false)
        {
            base.Initialize();

            m_bmSnoozeType.ButtonRefresh(DataManagerAlarm.Instance.STR_SNOOZE_ARR.Length);

            for (int i = 0; i < DataManagerAlarm.Instance.STR_SNOOZE_ARR.Length; i++)
            {
                GameObject obj = PrefabManager.Instance.MakeObject("prefab/BannerSnooze", m_Grid.gameObject);
                obj.name = string.Format("{0}", i);
                BannerSnooze script = obj.GetComponent <BannerSnooze> ();
                script.Initialize(DataManagerAlarm.Instance.STR_SNOOZE_ARR [i], false);
                m_BannerSnoozeList.Add(script);
                m_bmSnoozeType.AddButtonBase(i, obj);
            }
            m_Grid.enabled = true;
            m_bmSnoozeType.ButtonInit();
        }

        int iCount = 0;

        foreach (BannerSnooze snooze in m_BannerSnoozeList)
        {
            snooze.Initialize(DataManagerAlarm.Instance.STR_SNOOZE_ARR [iCount], iCount == GameMain.Instance.EditingAlarmParam.snooze);
        }

        m_bInitialized = true;
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        m_bmIconList.ButtonRefresh(DataManagerAlarm.Instance.master_image_list.Count);

        m_iSelectingId = GameMain.Instance.kvs_data.ReadInt(DataManagerAlarm.KEY_SELECTING_IMAGE_ID);

        int iIndex = 0;

        foreach (CsvImageData data in DataManagerAlarm.Instance.master_image_list)
        {
            GameObject obj    = PrefabManager.Instance.MakeObject("prefab/IconRoot", m_Grid.gameObject);
            IconList   script = obj.GetComponent <IconList> ();

            script.Initialize(m_iSelectingId, iIndex, data);

            m_iconList.Add(script);

            m_bmIconList.AddButtonBase(iIndex, obj);

            iIndex += 1;
        }

        IconSelect(m_iSelectingId);
        m_bmIconList.TriggerClearAll();

        m_imageCheck.Initialize();
    }
Пример #3
0
 public override void PageStart()
 {
     m_eStep    = STEP.SCREENSHOT;
     m_eStepPre = STEP.MAX;
     base.PageStart();
     m_lbText.text     = "シェアしてリンゴ出現!";
     m_lbTextDesc.text = "シェアするとリンゴが出現してストーリーを進めることができます";
     m_closeButton     = PrefabManager.Instance.MakeObject("prefab/CloseButton", m_goDispRoot).GetComponent <ButtonBase>();
     m_btnManager.ButtonRefresh();
     foreach (string strText in BUTTON_LIST)
     {
         GameObject obj = PrefabManager.Instance.MakeObject("prefab/ShareButton", m_gridButton.gameObject);
         obj.GetComponent <ShareButton> ().Initialize(strText);
         m_btnManager.AddButtonBase(obj);
     }
     m_gridButton.enabled = true;
     m_btnManager.ButtonInit();
 }
Пример #4
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();
    }