Beispiel #1
0
 public void Init(ItemFielInfo SelectEuqItemfielInfo, int Place)
 {
     Button_Beset.SetMyButtonActive(true);
     CurrentItemFileInfo = SelectEuqItemfielInfo;
     EquipID             = SelectEuqItemfielInfo.sSyncContainerGoods_SC.uidGoods;
     this.place          = Place;
     StartCoroutine(RefreshList(JewelState.JewelBeset));
     //����
     if (ItemList != null)
     {
         ItemList.ApplyAllItem(P =>
         {
             if (P != null)
             {
                 P.gameObject.RegisterBtnMappingId(P.ItemFielInfo.LocalItemData._goodID, UIType.Gem, BtnMapId_Sub.Gem_ChoseJewelContainerListPanel_Item
                                                   , NoticeToDragSlerp, P.DragAmount);
             }
         });
     }
     if (m_noticeToDragAmount != 0)
     {
         StartCoroutine(DragAmountSlerp(m_noticeToDragAmount));
         m_noticeToDragAmount = 0;
     }
 }
Beispiel #2
0
        public void Init(ItemFielInfo itemfileInfo)
        {
            TotalExp = 0;
            SelectedJewelTotalExp.SetText(TotalExp);
            UpdateSwallowButton();
            this._itemFielInfo = itemfileInfo;
            Jewel jewel = ItemDataManager.Instance.GetItemData(itemfileInfo.LocalItemData._goodID) as Jewel;
            int   level = itemfileInfo.materiel.ESTORE_FIELD_LEVEL;

            LevelUPNeedExp.SetText(jewel.StoneExp[level - 1] - itemfileInfo.materiel.ESTORE_FIELD_EXP);
            StartCoroutine(RefreshList(JewelState.jewelChose_Upgrade));
            //引导
            if (ItemList != null)
            {
                ItemList.ApplyAllItem(P =>
                {
                    if (P != null)
                    {
                        P.gameObject.RegisterBtnMappingId(P.ItemFielInfo.LocalItemData._goodID, UIType.Gem, BtnMapId_Sub.Gem_SwallowContainerListPanel_Item
                                                          , NoticeToDragSlerp, P.DragAmount);
                    }
                });
            }
            if (m_noticeToDragAmount != 0)
            {
                StartCoroutine(DragAmountSlerp(m_noticeToDragAmount));
                m_noticeToDragAmount = 0;
            }
        }