Exemplo n.º 1
0
        //纯展示
        private void OnInitResultData(ResultWindowData data)
        {
            int count = data.m_itemDatas.Count;

            m_Grid.EnsureSize <GiftContent>(count);
            for (int i = 0; i < count; i++)
            {
                GiftContent giftContent = m_Grid.GetChild <GiftContent>(i);
                giftContent.SetData(data.m_itemDatas[i]);
                giftContent.SetTargetTransform(this.m_bagTrans);
                giftContent.Visible = true;
            }
        }
Exemplo n.º 2
0
        private void OnInitData(List <DropInfo> DropInfos)
        {
            m_exp = 0;
            int count = DropInfos.Count;

            m_Grid.EnsureSize <GiftContent>(count);
            for (int i = 0; i < count; i++)
            {
                GiftContent giftContent = m_Grid.GetChild <GiftContent>(i);
                giftContent.SetData(DropInfos[i]);
                giftContent.SetTargetTransform(this.m_bagTrans);
                giftContent.Visible = true;
                ConfProp prop = ConfProp.Get(DropInfos[i].PropId);
                //TODO: 放在各自系统增减装备。
                //if ((int)PROP_TYPE.E_FUNC == prop.type || (int)PROP_TYPE.E_CHIP == prop.type || (int)PROP_TYPE.E_NROMAL == prop.type || (int)PROP_TYPE.E_ENERGE == prop.type)
                //{
                //    GlobalInfo.MY_PLAYER_INFO.AddSingleBagInfo(DropInfos[i].PropId, DropInfos[i].Count);
                //}
                m_exp += CommonHelper.GetPropExp(DropInfos[i].PropId, DropInfos[i].Count);
            }
        }