private void CompoundResult(ArkCrossEngine.Network.GeneralOperationResult result) { if (result == ArkCrossEngine.Network.GeneralOperationResult.LC_Succeed) { RoleInfo roleInfo = LobbyClient.Instance.CurrentRole; if (roleInfo != null) { for (int i = chipItemList.Count - 1; i >= 0; i--) { ItemDataInfo itemData = roleInfo.GetItemData(chipItemList[i].Id(), chipItemList[i].Property()); if (itemData == null || itemData.ItemNum <= 0) { NGUITools.DestroyImmediate(chipItemList[i].gameObject); chipItemList.RemoveAt(i); } else { chipItemList[i].UpdateView(itemData.ItemNum); } } } CheckHasCompound(); } else { Debug.Log(result); } }
public void UpdateLegacyComplexAttr() { for (int i = 0; i < c_AttrCapacity; i++) { if (null == m_LegacyInfo.ComplexAttr[i]) { int assit_index = i + 1; LegacyComplexAttrConifg lcac_data = LegacyComplexAttrConifgProvider.Instance.GetDataById(assit_index); if (null != lcac_data && lcac_data.Property > 0 && IsUnlock(lcac_data.m_PeerA) && IsUnlock(lcac_data.m_PeerB)) { ItemDataInfo attr_carrier = new ItemDataInfo(); attr_carrier.Level = 1; attr_carrier.ItemNum = 1; attr_carrier.RandomProperty = lcac_data.Property; attr_carrier.ItemConfig = ItemConfigProvider.Instance.GetDataById(c_AttrCarrier); if (null != attr_carrier.ItemConfig) { SetLegacyComplexAttr(i, attr_carrier); } } } } }
void OnItemClicked(object p1, object p2) { int itemId = (int)p1; ItemDataInfo itemInfo = (ItemDataInfo)ConfigDataMgr.Instance.GetDataInfo <ItemTableData>(itemId); EventSys.Instance.AddEvent(ViewEvent.FightShowItemDes, itemInfo.Description); }
public void SetLegacyData(int index, ItemDataInfo info) { if (index >= 0 && index < c_LegacyCapacity && info != null) { m_LegacyInfo.Legacy[index] = info; m_LegacyChanged = true; } }
public void ClearString() { text.text = ""; text2.text = ""; text3.text = ""; itemDataInfo = null; selected = false; }
public ItemDataInfo GetEquipmentData(int index) { ItemDataInfo info = null; if (index >= 0 && index < c_EquipmentCapacity) { info = m_EquipmentInfo.Armor[index]; } return(info); }
public ItemDataInfo GetLegacyData(int index) { ItemDataInfo info = null; if (index >= 0 && index < c_LegacyCapacity) { info = m_LegacyInfo.Legacy[index]; } return(info); }
//扫荡事件 public void OnWipeoutBtnClick() { if (m_SubSceneType == SubSceneType.Master) { } RoleInfo role = LobbyClient.Instance.CurrentRole; if (null != role) { ItemDataInfo info = role.GetItemData(ItemConfigProvider.Instance.GetSweepStageItemId(), 0); if (null != info) { Data_SceneConfig sceneCfg = SceneConfigProvider.Instance.GetSceneConfigById(m_SceneId); if (role.CurStamina < sceneCfg.m_CostStamina) { SendDialog(907, 4, null); return; } if (info.ItemNum < 1) { SendDialog(901, 4, null); return; } if (m_SubSceneType == SubSceneType.Common) { if (info.ItemNum >= 1) { LogicSystem.PublishLogicEvent("ge_sweep_stage", "lobby", m_SceneId, 1); return; } } else if (m_SubSceneType == SubSceneType.Master) { if (info.ItemNum >= 1) { int complete_count = role.GetCompletedSceneCount(m_SceneId); if (complete_count < 3) { LogicSystem.PublishLogicEvent("ge_sweep_stage", "lobby", m_SceneId, 1); return; } else { SendDialog(902, 4, null); return; } } } } else { SendDialog(901, 4, null); } } }
//检查xhun相关 public static void CheckXhun() { bool has = false; RoleInfo role = LobbyClient.Instance.CurrentRole; XSoulInfo <XSoulPartInfo> xsoul_info = role.GetXSoulInfo(); if (xsoul_info == null) { return; } XSoulPartInfo xsoul_part_into = xsoul_info.GetXSoulPartData(XSoulPart.kWeapon); if (xsoul_part_into == null) { return; } ItemDataInfo itemInfo = xsoul_part_into.XSoulPartItem; if (itemInfo == null) { return; } int curExp = itemInfo.CurLevelExperience; int id = itemInfo.ItemId; int lv = itemInfo.Level; XSoulLevelConfig config = XSoulLevelConfigProvider.Instance.GetDataById(id); if (lv < config.m_MaxLevel) { int maxExp = 0; int nextLv = lv + 1 <= config.m_MaxLevel ? lv + 1 : config.m_MaxLevel; config.m_LevelExperience.TryGetValue(nextLv, out maxExp); int remainExp = maxExp - curExp; //剩余经验 int[] hunIds = config.m_ExperienceProvideItems; int hunExp = 0; //魂丹总经验 for (int i = 0; i < hunIds.Length; i++) { ItemDataInfo item = GetItemDataInfoById(hunIds[i]); if (item != null) { ItemConfig itemConfig = ItemConfigProvider.Instance.GetDataById(hunIds[i]); if (itemConfig != null) { hunExp += item.ItemNum * itemConfig.m_ExperienceProvide; } } } if (remainExp <= hunExp) { has = true; } } ArkCrossEngine.LogicSystem.EventChannelForGfx.Publish("ge_systemnewtip_state_change", "ui", SystemNewTipType.Xhun, has); }
public void SaleCurrentSculpture() { if (tooltip.selected) { ItemDataInfo itemInfo = tooltip.itemDataInfo; graverController.graver.Money += (itemInfo.item.Price / 2) * itemInfo.Amount; inventoryList[1].Items[itemInfo.Slot] = new Item(); inventoryList[1].ItemDataInfos[itemInfo.Slot] = new ItemDataInfo(); DestroyObject(inventoryList[1].Slots[itemInfo.Slot].transform.GetChild(0).gameObject); tooltip.ClearString(); } }
public void SetEquipmentData(int index, ItemDataInfo info) { if (index >= 0 && index < c_EquipmentCapacity && info != null) { m_EquipmentInfo.Armor[index] = info; m_EquipmentChanged = true; if ((int)EquipmentType.E_Weapon == index && null != info.ItemConfig) { WeaponDamageType = info.ItemConfig.m_DamageType; } } }
public void New() { ItemDataInfo newItem = new ItemDataInfo(); Stats newItemStats = new Stats("New Item", 0, 0, 0, 0, 0); newItem.Stats = newItemStats; itemList.itemData.Add(newItem); newItem.Tier = 1; Start(); ItemDropDown.value = ItemDropDown.options.Count - 1; LoadItem(); }
public void MarkItem(int index) { RefreshItemImage(); markedItem = index; itemDataInfo = new ItemDataInfo(pcon.pinfo.items[index], dataText); itemDataInfo.SetItemDataText(); if (itemDataInfo.item.itemType != 0) { marker[index].enabled = true; } }
public ItemDataInfo GetLegacyComplexAttr(int index) { ItemDataInfo info = null; for (int i = 0; i < m_LegacyInfo.ComplexAttr.Length; i++) { if (i == index) { info = m_LegacyInfo.ComplexAttr[i]; break; } } return(info); }
public void Save() { ItemDataInfo itemData = new ItemDataInfo(); itemData.Item_type = (Constants.ItemIndex)TypeDropDown.value; itemData.Stats = new Stats(NameText.text, HPPoints, StrPoints, AgiPoints, DexPoints, StaPoints); itemData.Tier = tier; itemData.Sprite_index = spriteIndex; itemData.id = ItemDropDown.value; itemData.price = int.Parse(PriceText.text); itemList.itemData[ItemDropDown.value] = itemData; MasterManager.ManagerGlobalData.SetItemDataInfo(itemList, true); Start(); LoadItem(); }
public void SetLegacyComplexAttr(int pos, ItemDataInfo info) { if (null != m_LegacyInfo.ComplexAttr && m_LegacyInfo.ComplexAttr.Length > 0) { for (int i = 0; i < m_LegacyInfo.ComplexAttr.Length; i++) { if (i == pos) { m_LegacyInfo.ComplexAttr[i] = info; m_LegacyChanged = true; break; } } } }
void Populate(ItemDataInfo itemData) { this.NameText.text = itemData.Stats.Name; this.PriceText.text = itemData.price.ToString(); this.HPPoints = itemData.Stats.MAXHP; this.StrPoints = itemData.Stats.Strength; this.AgiPoints = itemData.Stats.Agility; this.DexPoints = itemData.Stats.Dexterity; this.StaPoints = itemData.Stats.Stamina; spriteIndex = itemData.Sprite_index; TypeDropDown.value = (int)itemData.Item_type; switch (itemData.Item_type) { case Constants.ItemIndex.ARMOR: SelectedSprite.sprite = Armors[itemData.Sprite_index]; break; case Constants.ItemIndex.HELMET: SelectedSprite.sprite = Helmets[itemData.Sprite_index]; break; case Constants.ItemIndex.LEFT_HAND: SelectedSprite.sprite = LeftHands[itemData.Sprite_index]; break; case Constants.ItemIndex.PANTS: SelectedSprite.sprite = Pants[itemData.Sprite_index]; break; case Constants.ItemIndex.RIGHT_HAND: SelectedSprite.sprite = RightHands[itemData.Sprite_index]; break; case Constants.ItemIndex.SHOES: SelectedSprite.sprite = Shoes[itemData.Sprite_index]; break; } this.tier = itemData.Tier; this.startinAvaliablePoints = (skillPointsPerTier) * tier; int spentPoints = this.HPPoints + this.StrPoints + this.AgiPoints + this.DexPoints + this.StaPoints; this.avaliablePoints = startinAvaliablePoints + (BaseStats * 5) - spentPoints; UpdateStatusText(); }
//检查神器相关 public static void CheckArtifact() { bool has = false; RoleInfo role_info = LobbyClient.Instance.CurrentRole; if (role_info != null) { foreach (ItemDataInfo item_info in role_info.Legacys) { if (item_info.IsUnlock) {//已解锁的 if (item_info.Level < role_info.Level) { LegacyLevelupConfig legacyLvUpCfg = LegacyLevelupConfigProvider.Instance.GetDataById(item_info.Level); if (legacyLvUpCfg != null) { int legacyIndex = -1; for (int index = 0; index < role_info.Legacys.Length; ++index) { if (role_info.Legacys[index] != null && item_info.ItemId == role_info.Legacys[index].ItemId) { legacyIndex = index; break; } } if (legacyIndex >= 0 && legacyIndex < legacyLvUpCfg.m_CostItemList.Count) { int costitemId = legacyLvUpCfg.m_CostItemList[legacyIndex]; int currentNum = 0; ItemDataInfo costItemDataInfo = GetItemDataInfoById(costitemId); if (costItemDataInfo != null) { currentNum = costItemDataInfo.ItemNum; } int max = legacyLvUpCfg.m_CostNum; if (currentNum >= max) {//物品够 has = true; } } } } } } } ArkCrossEngine.LogicSystem.EventChannelForGfx.Publish("ge_systemnewtip_state_change", "ui", SystemNewTipType.GodEquip, has); }
public void LoadInventory(int sort) { inventoryList[sort].ItemDataInfos = DataSaver.LoadData <List <ItemDataInfo> >(DataSaver.inventoryFilePath[sort]); for (int i = 0; i < inventoryList[sort].ItemDataInfos.Count; i++) { ItemDataInfo info = inventoryList[sort].ItemDataInfos[i]; if (info.Slot != -1) { inventoryList[sort].Items[info.Slot] = info.Item; GameObject itemObj = Instantiate(inventoryItem); itemObj.GetComponent <ItemData>().ItemDataInfo = info; itemObj.transform.GetChild(0).GetComponent <Text>().text = info.Amount.ToString(); itemObj.transform.SetParent(inventoryList[sort].Slots[info.Slot].transform, false); itemObj.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; inventoryList[sort].Items[info.Slot].sprite = ItemDatabase.sprites[info.item.Id]; itemObj.GetComponent <Image>().sprite = ItemDatabase.sprites[info.item.Id]; } } }
public Item(int id, int count) { Id = id; Count = new ENum <int>(count); ItemDataInfo dataInfo = (ItemDataInfo)ConfigDataMgr.Instance.GetDataInfo <ItemTableData>(Id); Name = dataInfo.Name; Description = dataInfo.Description; Type = dataInfo.Type; Command = dataInfo.Command; Icon = dataInfo.Icon; Price.Value = dataInfo.Price; Lv.Value = dataInfo.Lv; UsableInFight = dataInfo.UsableInFight; ColorUtility.TryParseHtmlString(dataInfo.Color, out TheColor); JobLimited = dataInfo.JobLimited; }
public void SaveIntoJson() { Debug.Log(Application.persistentDataPath); string write = ""; for (int i = 0; i < _data.Count; i++) { write += JsonUtility.ToJson(_data[i], PrintPretty); write += "\n"; } write += "\nItem_Data\n"; for (int i = 0; i < ItemData.Instance.allItemData.Count; i++) { Item temp = ItemData.Instance.allItemData[i]; ItemDataInfo tempInfo = new ItemDataInfo(temp.name, temp.hasRead, temp.timeRead); write += JsonUtility.ToJson(tempInfo, PrintPretty); write += "\n"; } File.WriteAllText(Application.persistentDataPath + "/data.json", write); }
protected override bool ExecCommand(StoryInstance instance, StoryValueParam <int> _params, long delta) { object us; if (instance.GlobalVariables.TryGetValue("UserInfo", out us)) { UserInfo user = us as UserInfo; if (null != user) { int itemId = _params.Param1Value; ItemDataInfo item = new ItemDataInfo(); item.ItemConfig = ItemConfigProvider.Instance.GetDataById(itemId); item.ItemNum = 1; if (null != item.ItemConfig) { user.GetEquipmentStateInfo().SetEquipmentData(item.ItemConfig.m_WearParts, item); } } } return(false); }
public void BuyItem() { if (selectedItemID > -1) { ItemDataInfo item = filteredItemList[selectedItemID]; if (envData.gold >= item.price) { envData.gold -= item.price; playerData.itemList.Add(item); MasterManager.ManagerGlobalData.SaveAllData(); TownManager.Instance.UpdatePlayerUI(); //@Todo PLAY CASH SOUND selectedItemID = -1; ResetText(); Start(); hasUsedShop = true; } else { MasterManager.ManagerPopup.ShowMessageBox("Oh No!", "You don't have enougth gold to buy this Item", Constants.PopupType.POPUP_NO); } } else if (sellItemId > -1) { ItemDataInfo item = playerItens[sellItemId]; envData.gold += (long)(Math.Round((double)item.price / 3)); playerData.itemList.Remove(item); MasterManager.ManagerGlobalData.SaveAllData(); TownManager.Instance.UpdatePlayerUI(); //@Todo PLAY CASH SOUND sellItemId = -1; ResetText(); Start(); hasUsedShop = true; } else { MasterManager.ManagerPopup.ShowMessageBox("Oh No!", "You must select an item before clicking here", Constants.PopupType.POPUP_NO); } }
void EquipItem(int id) { ItemDataInfo tempItem = filteredItemList[id]; bool replaced = false; for (int i = 0; i < equipedItems.Count; i++) { if (equipedItems[i].Item_type == tempItem.Item_type) { equipedItems[i] = null; equipedItems[i] = tempItem; replaced = true; } } if (!replaced) { equipedItems.Add(tempItem); } SavePlayerData(); UpdateEquipedVisual(); }
// 初始化扫荡劵 public void InitWipeNum() { RoleInfo role = LobbyClient.Instance.CurrentRole; if (null != role) { ItemDataInfo info = role.GetItemData(ItemConfigProvider.Instance.GetSweepStageItemId(), 0); if (null != info) { wipeOutNum.text = info.ItemNum.ToString(); } else { wipeOutNum.text = "0"; } } //显示剩余次数 if (m_SubSceneType == SubSceneType.Master) { if (lblChallengeInfo != null && lblChallengeInfo.transform.parent != null) { NGUITools.SetActive(lblChallengeInfo.transform.parent.gameObject, true); } int complete_count = role.GetCompletedSceneCount(m_SceneId); m_CompleteCount = complete_count; complete_count = complete_count > 3 ? 3 : complete_count; if (lblChallengeInfo != null) { lblChallengeInfo.text = (3 - complete_count) + " / 3"; } } else { if (lblChallengeInfo != null && lblChallengeInfo.transform.parent != null) { NGUITools.SetActive(lblChallengeInfo.transform.parent.gameObject, false); } } }
public Stats GetActualStats() { Stats actualStat = Stats.copy(statsList[0]); for (int i = 0; i < equipedItensId.Count; i++) { for (int p = 0; p < itemList.Count; p++) { if (itemList[p].id == equipedItensId[i]) { try { ItemDataInfo tempItem = itemList[p]; //actualStat.HP += (int)(tempItem.Stats.HP); actualStat.MAXHP += tempItem.Stats.MAXHP; actualStat.Stamina = Utility.GetMaxValue(actualStat.Stamina, tempItem.Stats.MaxStamina); actualStat.MaxStamina = Utility.GetMaxValue(actualStat.MaxStamina, tempItem.Stats.MaxStamina); actualStat.Dexterity = Utility.GetMaxValue(actualStat.Dexterity, tempItem.Stats.Dexterity); actualStat.Agility = Utility.GetMaxValue(actualStat.Agility, tempItem.Stats.Agility); actualStat.Strength = Utility.GetMaxValue(actualStat.Strength, tempItem.Stats.Strength); //TODO : have to organize a concep of HP if (actualStat.HP > actualStat.MAXHP) { actualStat.HP = (int)(actualStat.MAXHP * Constants.HP_MULTIPLIER); statsList[0].HP = actualStat.HP; } } catch { } } } } //max stat check return(actualStat); }
internal void UpdateView(int itemNum) { RoleInfo roleInfo = LobbyClient.Instance.CurrentRole; if (roleInfo != null) { ItemDataInfo itemDataInfo = roleInfo.GetItemData(id, property); if (itemDataInfo != null) { hasNum = itemDataInfo.ItemNum; } } if (lblNum != null) { lblNum.text = hasNum + "/" + maxNum; } if (progress != null) { float value = (float)hasNum / maxNum; progress.value = value > 1 ? 1 : value; } UpdateBtnState(); }
public ItemData() { itemDataInfo = new ItemDataInfo(); }
public static ItemDataInfo FromOSD(OSD data) { ItemDataInfo ret = new ItemDataInfo(); if (!(data is OSDMap)) return ret; OSDMap map = (OSDMap)data; ret.ItemID = map["ItemID"]; ret.CallbackID = map["CallbackID"]; ret.FolderID = map["FolderID"]; ret.CreatorID = map["CreatorID"]; ret.OwnerID = map["OwnerID"]; ret.GroupID = map["GroupID"]; ret.BaseMask = (PermissionMask)map["BaseMask"].AsUInteger(); ret.OwnerMask = (PermissionMask)map["OwnerMask"].AsUInteger(); ret.GroupMask = (PermissionMask)map["GroupMask"].AsUInteger(); ret.EveryoneMask = (PermissionMask)map["EveryoneMask"].AsUInteger(); ret.NextOwnerMask = (PermissionMask)map["NextOwnerMask"].AsUInteger(); ret.GroupOwned = map["GroupOwned"]; ret.AssetID = map["AssetID"]; ret.Type = (AssetType)map["Type"].AsInteger(); ret.InvType = (InventoryType)map["InvType"].AsInteger(); ret.Flags = map["Flags"]; ret.SaleType = (SaleType)map["SaleType"].AsInteger(); ret.SalePrice = map["SaleType"]; ret.Name = map["Name"]; ret.Description = map["Description"]; ret.CreationDate = Utils.UnixTimeToDateTime(map["CreationDate"]); ret.CRC = map["CRC"]; return ret; }
protected virtual void UpdateText(int id) { itemName.text = filteredItemList[id].Stats.Name; string itemPos = ""; switch (filteredItemList[id].Item_type) { case Constants.ItemIndex.ARMOR: itemPos = Constants.C_ARMOR; break; case Constants.ItemIndex.HELMET: itemPos = Constants.C_HELMET; break; case Constants.ItemIndex.LEFT_HAND: itemPos = Constants.C_LEFT_HAND; break; case Constants.ItemIndex.PANTS: itemPos = Constants.C_PANTS; break; case Constants.ItemIndex.RIGHT_HAND: itemPos = Constants.C_RIGHT_HAND; break; case Constants.ItemIndex.SHOES: itemPos = Constants.C_SHOES; break; } ItemDataInfo equipedItem = null; for (int i = 0; i < equipedItems.Count; i++) { if (equipedItems[i].Item_type == filteredItemList[id].Item_type) { equipedItem = equipedItems[i]; } } if (equipedItem != null && equipedItem.Item_type == filteredItemList[id].Item_type) { itemHP.color = filteredItemList[id].Stats.MAXHP > equipedItem.Stats.MAXHP ? higherColor : (filteredItemList[id].Stats.MAXHP == equipedItem.Stats.MAXHP ? equalsColor : lowerColor); itemSTR.color = filteredItemList[id].Stats.Strength > equipedItem.Stats.Strength ? higherColor : (filteredItemList[id].Stats.Strength == equipedItem.Stats.Strength ? equalsColor : lowerColor); itemAGI.color = filteredItemList[id].Stats.Agility > equipedItem.Stats.Agility ? higherColor : (filteredItemList[id].Stats.Agility == equipedItem.Stats.Agility ? equalsColor : lowerColor); itemDEX.color = filteredItemList[id].Stats.Dexterity > equipedItem.Stats.Dexterity ? higherColor : (filteredItemList[id].Stats.Dexterity == equipedItem.Stats.Dexterity ? equalsColor : lowerColor); itemSTA.color = filteredItemList[id].Stats.Stamina > equipedItem.Stats.Stamina ? higherColor : (filteredItemList[id].Stats.Stamina == equipedItem.Stats.Stamina ? equalsColor : lowerColor); } else { itemHP.color = filteredItemList[id].Stats.MAXHP > 0?higherColor:equalsColor; itemSTR.color = filteredItemList[id].Stats.Strength > 0?higherColor:equalsColor; itemAGI.color = filteredItemList[id].Stats.Agility > 0?higherColor:equalsColor; itemDEX.color = filteredItemList[id].Stats.Dexterity > 0?higherColor:equalsColor; itemSTA.color = filteredItemList[id].Stats.Stamina > 0?higherColor:equalsColor; } itemSlot.text = itemPos; itemHP.text = (Constants.HP_MULTIPLIER * filteredItemList[id].Stats.MAXHP).ToString(); itemSTR.text = filteredItemList[id].Stats.Strength.ToString(); itemAGI.text = filteredItemList[id].Stats.Agility.ToString(); itemDEX.text = filteredItemList[id].Stats.Dexterity.ToString(); itemSTA.text = filteredItemList[id].Stats.Stamina.ToString(); }
//对外接口,初始化信息 public void ShowIntro(ArenaTargetInfo info) { if (hasStart == false) { Start(); } if (info != null) { if (lblName != null) { lblName.text = info.Nickname; } if (lblFightScore != null) { lblFightScore.text = info.FightingScore.ToString(); } if (lblRank != null) { lblRank.text = info.Rank.ToString(); } if (spHead != null) { Data_PlayerConfig cg = PlayerConfigProvider.Instance.GetPlayerConfigById(info.HeroId); spHead.spriteName = cg.m_PortraitForCell; } //装备 for (int i = 0; i < equiparry.Length; i++) { equiparry[i].hasEquip = false; } for (int i = 0; i < info.Equips.Length; i++) { ItemDataInfo item = info.Equips[i]; if (item != null) { ItemConfig config = ItemConfigProvider.Instance.GetDataById(item.ItemId); if (config != null && config.m_WearParts < equiparry.Length) { equiparry[config.m_WearParts].SetEquipmentInfo(item.ItemId, item.Level, item.RandomProperty, 1); } } } for (int i = 0; i < equiparry.Length; i++) { if (equiparry[i].hasEquip == false) { equiparry[i].SetFrameAndIcon(defaultEquipSprite[i]);//无装备设为默认图标 } } //伙伴 int totalFightScore = info.FightingScore; for (int i = 0; i < partnerSlotList.Count; i++) { if (i < info.FightPartners.Count) { partnerSlotList[i].InitPartnerInfo(info.FightPartners[i]); totalFightScore += partnerSlotList[i].GetFighting(); NGUITools.SetActive(partnerSlotList[i].gameObject, true); } else { NGUITools.SetActive(partnerSlotList[i].gameObject, false); } } if (gridPartnersParent != null) { gridPartnersParent.repositionNow = true; } if (lblTotalFightScore != null) { lblTotalFightScore.text = totalFightScore.ToString();//所有伙伴战力 } UIManager.Instance.ShowWindowByName("PPVPFighterIntro"); } }