| | |
| | |
|
| | | private void OnClickDeblockingButton()
|
| | | {
|
| | | FuncConfigConfig _tagfun = Config.Instance.Get<FuncConfigConfig>("HorseUpItem");
|
| | | ItemConfig _tagchine = Config.Instance.Get<ItemConfig>(int.Parse(_tagfun.Numerical1));
|
| | | FuncConfigConfig _tagfun = FuncConfigConfig.Get("HorseUpItem");
|
| | | ItemConfig _tagchine = ItemConfig.Get(int.Parse(_tagfun.Numerical1));
|
| | | GetItemPath.SetChinItemModel(_tagchine.ID);
|
| | | }
|
| | | private void OnClickNotUnlockButton()
|
| | | {
|
| | | HorseConfig _Horse = Config.Instance.Get<HorseConfig>(pitchOnHorseID);
|
| | | ItemConfig _item = Config.Instance.Get<ItemConfig>(_Horse.UnlockItemID);
|
| | | HorseConfig _Horse = HorseConfig.Get(pitchOnHorseID);
|
| | | ItemConfig _item = ItemConfig.Get(_Horse.UnlockItemID);
|
| | | GetItemPath.SetPetMatUnlockModel(_item.ID);
|
| | | }
|
| | | public void PanelAssignment(int mountID)
|
| | |
| | | }
|
| | | if (HorseID != mount_ID)
|
| | | {
|
| | | HorseConfig _model = Config.Instance.Get<HorseConfig>(HorseID);
|
| | | HorseConfig _model = HorseConfig.Get(HorseID);
|
| | | UI3DModelExhibition.Instance.ShowHourse(_model.Model, m_MountRawImg);
|
| | | mount_ID = HorseID;
|
| | | if (UI3DModelExhibition.Instance.NpcModelHorse != null)
|
| | |
| | | int initialForce = 0;
|
| | | foreach (var key in mountModel._DicHorse.Keys)
|
| | | {
|
| | | HorseConfig horseConfig = Config.Instance.Get<HorseConfig>(key);
|
| | | HorseConfig horseConfig = HorseConfig.Get(key);
|
| | | initialForce += horseConfig.InitFightPower;
|
| | | }
|
| | | Dictionary<int, int> AddPowerDic = new Dictionary<int, int>();
|
| | |
| | | {
|
| | | if (mountModel._DicMountItem[key] != 0)
|
| | | {
|
| | | ItemConfig itemModel = Config.Instance.Get<ItemConfig>(key);
|
| | | ItemConfig itemModel = ItemConfig.Get(key);
|
| | | if (dic.ContainsKey(itemModel.Effect1))
|
| | | {
|
| | | dic[itemModel.Effect1] += itemModel.EffectValueA1 * mountModel._DicMountItem[key];
|
| | |
| | | }
|
| | | if (mountModel._DicHorse.ContainsKey(mountID))
|
| | | {
|
| | | var configHorse = Config.Instance.Get<HorseConfig>(mountID);
|
| | | var configHorse = HorseConfig.Get(mountID);
|
| | | if (mountModel._DicHorse[mountID].Lv >= configHorse.MaxLV)
|
| | | {
|
| | | m_ManJie.SetActive(true);
|
| | |
| | | m_YiJieSuo.SetActive(false);
|
| | | m_Deblocking.SetActive(true);
|
| | | m_TrainButtonGroup.SetActive(false);
|
| | | HorseConfig _Horse = Config.Instance.Get<HorseConfig>(mountID);
|
| | | ItemConfig _item = Config.Instance.Get<ItemConfig>(_Horse.UnlockItemID);
|
| | | HorseConfig _Horse = HorseConfig.Get(mountID);
|
| | | ItemConfig _item = ItemConfig.Get(_Horse.UnlockItemID);
|
| | | m_NotUnlockImageBG.SetSprite(_item.IconKey);
|
| | | m_ImmageBG.SetItemBackGround(_item.ItemColor);
|
| | | int UnlockItemID = Config.Instance.Get<HorseConfig>(mountID).UnlockItemID;
|
| | | int UnlockItemID = HorseConfig.Get(mountID).UnlockItemID;
|
| | | int MaterialNumber = playerPack.GetItemCountByID(PackType.rptItem, UnlockItemID);//获取背包解锁材料的数量
|
| | | int UnlockItemCnt = Config.Instance.Get<HorseConfig>(mountID).UnlockItemCnt;
|
| | | int UnlockItemCnt = HorseConfig.Get(mountID).UnlockItemCnt;
|
| | | if (MaterialNumber >= UnlockItemCnt)
|
| | | {
|
| | | m_NotUnlockTxt.text = "<color=#fffaf0>" + MaterialNumber + "/" + UnlockItemCnt + "</color>";
|
| | |
| | | if (mountModel._DicHorse.ContainsKey(mountID))
|
| | | {
|
| | | m_BottomOperate.SetActive(true);
|
| | | int horseMaxLv = Config.Instance.Get<HorseConfig>(mountID).MaxLV;
|
| | | int horseMaxLv = HorseConfig.Get(mountID).MaxLV;
|
| | | if (mountModel._DicHorse[mountID].Lv >= horseMaxLv)
|
| | | {
|
| | | m_ExpNum.text = Language.Get("Z1029");
|
| | |
| | |
|
| | | private void TheMountButton()
|
| | | {
|
| | | FuncConfigConfig _tagfun = Config.Instance.Get<FuncConfigConfig>("HorseUpItem");
|
| | | ItemConfig _tagchine = Config.Instance.Get<ItemConfig>(int.Parse(_tagfun.Numerical1));
|
| | | FuncConfigConfig _tagfun = FuncConfigConfig.Get("HorseUpItem");
|
| | | ItemConfig _tagchine = ItemConfig.Get(int.Parse(_tagfun.Numerical1));
|
| | | IconImage1.SetSprite(_tagchine.IconKey);
|
| | | int mountDanNum = playerPack.GetItemCountByID(PackType.rptItem, int.Parse(_tagfun.Numerical1));
|
| | | m_Text1.text = string.Format(Language.Get("Remaining_Z1"), UIHelper.ReplaceLargeNum(mountDanNum));
|
| | |
| | | int fightNum = 0;
|
| | | if (IsDeblocking(SkillID))
|
| | | {
|
| | | SkillConfig skillconfig = Config.Instance.Get<SkillConfig>(SkillID);
|
| | | SkillConfig skillconfig = SkillConfig.Get(SkillID);
|
| | | fightNum = skillconfig.FightPower;
|
| | | }
|
| | | return fightNum;
|