void subStart() { //m_bmBannerList = new ButtonManager (); //m_bmBannerShop = new ButtonManager (); foreach (CsvVoiceData data in DataManagerAlarm.Instance.master_voice_list) { if (TimeManager.Instance.GetDiffNow(data.release_date).TotalSeconds < 0) { if (data.type == 1) { GameObject obj = PrefabManager.Instance.MakeObject("prefab/BannerList", m_gridList.gameObject); BannerList script = obj.GetComponent <BannerList> (); m_bmBannerList.AddButtonBaseList(obj); script.Initialize(data); m_bmBannerListSelect.AddButtonBaseList(script.m_goSelect); m_bannerList.Add(script); } else if (data.type == 2) { GameObject obj = PrefabManager.Instance.MakeObject("prefab/BannerShop", m_gridStore.gameObject); BannerShop script = obj.GetComponent <BannerShop> (); m_bmBannerShop.AddButtonBaseList(obj); script.Initialize(data); m_bmBannerShopSelect.AddButtonBaseList(script.m_goSelect); m_bannerShop.Add(script); } else { } } } m_bmBannerList.SetButtonbaseFromList(); m_bmBannerListSelect.SetButtonbaseFromList(); m_bmBannerShop.SetButtonbaseFromList(); m_bmBannerShopSelect.SetButtonbaseFromList(); m_gridList.enabled = true; m_gridStore.enabled = true; }