Exemple #1
0
        //初始化女妖列表
        private void InitSirenList()
        {
            var sirenList = SirenDataManager.Instance.GetPlayerSirenList();

            sirenList.ApplyAllItem(p =>
            {
                //* SirenItemControl_V3 区别于 SirenItemControl 其他版本,不继承于monobehaviour
                SirenItemControl_V3 itemCtrl = new SirenItemControl_V3();
                itemCtrl.Init(p, SirenBeSelectedHandle);
                m_SirenItemDict.Add(p._sirenID, itemCtrl);
            });
            //ItemPageManager_Siren.InitPager(sirenList.Count, 1, 0);
            //			Button_PageUp.BackgroundSprite.alpha = m_curSirenNo <= 1 ? 0.5f : 1f;
            //			Label_Pagination.text = "1/" + m_SirenItemDict.Count.ToString();
        }
Exemple #2
0
        //初始化女妖列表
        private void InitSirenList()
        {
            //var sirenList = PlayerDataManager.Instance.GetPlayerSirenList();
            var sirenList = SirenDataManager.Instance.GetPlayerSirenList();

            sirenList.ApplyAllItem(p =>
            {
                //GameObject sirenItem = (GameObject)Instantiate(SirenItem.gameObject);
                //sirenItem.transform.parent = ItemPageManager_Siren.transform;
                //sirenItem.transform.localScale = Vector3.one;
                //SirenItemControl itemCtrl = sirenItem.GetComponent<SirenItemControl>();
                SirenItemControl_V3 itemCtrl = new SirenItemControl_V3();
                itemCtrl.Init(p, SirenBeSelectedHandle);
                m_SirenItemDict.Add(p._sirenID, itemCtrl);
            });
            //ItemPageManager_Siren.InitPager(sirenList.Count, 1, 0);
            Button_PageUp.BackgroundSprite.alpha = m_curSirenNo <= 1 ? 0.5f : 1f;
            Label_Pagination.text = "1/" + m_SirenItemDict.Count.ToString();
        }