private void OnTeamFightDamageUpdate() { if (Singleton <WatchController> .GetInstance().CanShowActorIRPosMap()) { this.SetHeroList(); uint curTime = Singleton <WatchController> .GetInstance().CurFrameNo *Singleton <WatchController> .GetInstance().FrameDelta / 1000u; CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA value = current.get_Value(); if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { this.SetFightDataSingle(enumerator2.Current, this.m_heroListCamp1, curTime, this.m_teamFightDataCamp1); } } else if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { this.SetFightDataSingle(enumerator3.Current, this.m_heroListCamp2, curTime, this.m_teamFightDataCamp2); } } } } }
protected void OnShowReport(CUIEvent uiEvent) { CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(PATH_PVP_SETTLE_PVP); if ((form != null) && (form.gameObject != null)) { this._cacheLastReportGo = uiEvent.m_srcWidget; GameObject gameObject = form.gameObject.transform.Find("Report").gameObject; gameObject.CustomSetActive(true); this._reportUid = uiEvent.m_eventParams.commonUInt64Param1; this._reportWordId = (int)uiEvent.m_eventParams.commonUInt64Param2; CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; string playerName = null; if (playerKDAStat != null) { DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; if (current.Value.PlayerUid == this._reportUid) { KeyValuePair <uint, PlayerKDA> pair2 = enumerator.Current; if (pair2.Value.WorldId == this._reportWordId) { KeyValuePair <uint, PlayerKDA> pair3 = enumerator.Current; playerName = pair3.Value.PlayerName; break; } } } } gameObject.transform.FindChild("ReportToggle/ReportName").gameObject.GetComponent <Text>().text = string.Format(Singleton <CTextManager> .GetInstance().GetText("Report_PlayerName"), playerName); } }
private void SetHeroList() { if (this.m_heroListCamp1.get_Count() != 0) { return; } CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA value = current.get_Value(); if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { this.m_heroListCamp1.Add(enumerator2.Current); this.m_teamFightDataCamp1.Add(new Dictionary <uint, TeamFightData>()); } } else if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { this.m_heroListCamp2.Add(enumerator3.Current); this.m_teamFightDataCamp2.Add(new Dictionary <uint, TeamFightData>()); } } } Debug.Log("!"); }
public void BattleStart() { if (this._heroWrapDict != null) { return; } this._lastUpdateFrame = 0u; Player playerByUid = Singleton <GamePlayerCenter> .GetInstance().GetPlayerByUid(Singleton <WatchController> .GetInstance().TargetUID); this.TargetHeroId = ((playerByUid == null) ? Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer().Captain.get_handle().ObjID : playerByUid.Captain.get_handle().ObjID); this._heroWrapDict = new DictionaryView <uint, HeroInfoItem>(); List <HeroKDA> list = new List <HeroKDA>(); List <HeroKDA> list2 = new List <HeroKDA>(); CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.get_Current(); PlayerKDA value = current.get_Value(); if (value.PlayerCamp == 1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { list.Add(enumerator2.get_Current()); } } else if (value.PlayerCamp == 2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { list2.Add(enumerator3.get_Current()); } } } this.InitCampInfoUIList(1, list, this._camp1BaseList, this._camp1EquipList); this.InitCampInfoUIList(2, list2, this._camp2BaseList, this._camp2EquipList); this.PickHero(this.TargetHeroId); this.ValidateCampMoney(); this.RegisterEvents(); this._isBottomFold = false; this._isCampFold_1 = false; this.OnClickCampFold_1(null); this._isCampFold_2 = false; this.OnClickCampFold_2(null); this._isViewHide = false; float step = 150u * Singleton <WatchController> .GetInstance().FrameDelta * 0.001f; this.moneySample = new SampleData(step); this.expSample = new SampleData(step); this._lastSampleTime = 0f; }
private void UpdateKingOfKiller() { SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext(); if (curLvelContext == null || curLvelContext.m_headPtsUpperLimit <= 0) { return; } CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; if (playerKDAStat == null) { return; } uint playerId = 0u; int num = 0; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.get_Current(); if (current.get_Value() != null) { KeyValuePair <uint, PlayerKDA> current2 = enumerator.get_Current(); if (current2.get_Value().numKill > num) { KeyValuePair <uint, PlayerKDA> current3 = enumerator.get_Current(); num = current3.get_Value().numKill; KeyValuePair <uint, PlayerKDA> current4 = enumerator.get_Current(); playerId = current4.get_Value().PlayerId; } } } if (num > this.m_lastMostKill) { Player player = Singleton <GamePlayerCenter> .get_instance().GetPlayer(playerId); if (player != null && player.Captain != this.m_kingActor) { if (this.m_kingActor && this.m_kingActor.get_handle().EffectControl != null) { this.m_kingActor.get_handle().EffectControl.EndKingOfKillerEffect(); } this.m_kingActor = player.Captain; if (this.m_kingActor && this.m_kingActor.get_handle().EffectControl != null) { this.m_kingActor.get_handle().EffectControl.StartKingOfKillerEffect(); } } this.m_lastMostKill = num; } }
private void UpdateKDAView() { if ((null != this._root) && !Singleton <CUIManager> .GetInstance().GetForm(s_battleStateViewUIForm).IsHided()) { CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; int num = 0; int num2 = 0; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA rkda = current.Value; HeroItem item = null; if (rkda.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { IEnumerator <HeroKDA> enumerator2 = rkda.GetEnumerator(); while (enumerator2.MoveNext()) { item = (num >= this._heroList0.Length) ? null : this._heroList0[num++]; if (item != null) { item.Visible = true; item.Validate(enumerator2.Current); } } } else if (rkda.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { IEnumerator <HeroKDA> enumerator3 = rkda.GetEnumerator(); while (enumerator3.MoveNext()) { item = (num2 >= this._heroList1.Length) ? null : this._heroList1[num2++]; if (item != null) { item.Visible = true; item.Validate(enumerator3.Current); } } } } while (num < this._heroList0.Length) { this._heroList0[num++].Visible = false; } while (num2 < this._heroList1.Length) { this._heroList1[num2++].Visible = false; } } }
private void UpdateKingOfKiller() { SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext(); if ((curLvelContext != null) && (curLvelContext.m_headPtsUpperLimit > 0)) { CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; if (playerKDAStat != null) { uint playerId = 0; int numKill = 0; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; if (current.Value != null) { KeyValuePair <uint, PlayerKDA> pair2 = enumerator.Current; if (pair2.Value.numKill > numKill) { KeyValuePair <uint, PlayerKDA> pair3 = enumerator.Current; numKill = pair3.Value.numKill; KeyValuePair <uint, PlayerKDA> pair4 = enumerator.Current; playerId = pair4.Value.PlayerId; } } } if (numKill > this.m_lastMostKill) { Player player = Singleton <GamePlayerCenter> .instance.GetPlayer(playerId); if ((player != null) && (player.Captain != this.m_kingActor)) { if ((this.m_kingActor != 0) && (this.m_kingActor.handle.EffectControl != null)) { this.m_kingActor.handle.EffectControl.EndKingOfKillerEffect(); } this.m_kingActor = player.Captain; if ((this.m_kingActor != 0) && (this.m_kingActor.handle.EffectControl != null)) { this.m_kingActor.handle.EffectControl.StartKingOfKillerEffect(); } } this.m_lastMostKill = numKill; } } } }
private void UpdateListCamp(bool forceUpdate) { if (forceUpdate || !this.m_bListCampInited) { this.m_playerListCamp1.Clear(); this.m_playerListCamp2.Clear(); List <Player> allPlayers = Singleton <GamePlayerCenter> .get_instance().GetAllPlayers(); for (int i = 0; i < allPlayers.get_Count(); i++) { if (allPlayers.get_Item(i).PlayerCamp == 1) { this.m_playerListCamp1.Add(allPlayers.get_Item(i)); } else if (allPlayers.get_Item(i).PlayerCamp == 2) { this.m_playerListCamp2.Add(allPlayers.get_Item(i)); } } this.m_heroListCamp1.Clear(); this.m_heroListCamp2.Clear(); CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.get_Current(); PlayerKDA value = current.get_Value(); if (value.PlayerCamp == 1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { this.m_heroListCamp1.Add(enumerator2.get_Current()); } } else if (value.PlayerCamp == 2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { this.m_heroListCamp2.Add(enumerator3.get_Current()); } } } } }
public HeroInfoSideItem(COM_PLAYERCAMP _listCamp, HeroKDA _heroKDA, int _listIndex, GameObject goNode) { this.listCamp = _listCamp; this.listIndex = _listIndex; this._headImg = Utility.GetComponetInChild <Image>(goNode, "Head"); this._reviveTxt = Utility.GetComponetInChild <Text>(goNode, "Revive"); this._levelText = Utility.GetComponetInChild <Text>(goNode, "Level"); this._skill3Bg = Utility.FindChild(goNode, "Skill-bg"); this._skill3Canbe = Utility.FindChild(goNode, "Skill-canbe"); this._nameText = Utility.GetComponetInChild <Text>(goNode, "Name"); this._heroInfo = _heroKDA; this._skill3Bg.CustomSetActive(true); this._nameText.gameObject.CustomSetActive(false); CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); bool flag = false; while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA value = current.get_Value(); if (value.PlayerCamp == _listCamp) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { if (enumerator2.Current.HeroId == _heroKDA.HeroId) { this._nameText.gameObject.CustomSetActive(true); this._nameText.set_text(value.PlayerName); flag = true; break; } } } if (flag) { break; } } this._headImg.SetSprite(string.Format("{0}{1}", CUIUtility.s_Sprite_Dynamic_BustCircle_Dir, CSkinInfo.GetHeroSkinPic((uint)this._heroInfo.HeroId, 0u)), Singleton <CBattleSystem> .GetInstance().WatchFormScript, true, false, false, false); this.ValidateLevel(); this.ValidateReviceCD(); this.ValidateSkill3(); }
private void OnCampDragonChange() { if (!this._root) { this.Clear(); return; } int num = 0; int num2 = 0; CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA value = current.get_Value(); if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { num += enumerator2.Current.numKillDragon + enumerator2.Current.numKillBaron; } } else if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { num2 += enumerator3.Current.numKillDragon + enumerator3.Current.numKillBaron; } } } this._campDragonText_1.set_text(num.ToString()); this._campDragonText_2.set_text(num2.ToString()); }
public static void SetBurnSettleData(CUIFormScript form, ref COMDT_SETTLE_RESULT_DETAIL settleData) { CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; SetWin(form.gameObject, settleData.stGameInfo.bGameResult == 1); int num = 1; int num2 = 1; int num3 = 0; int num4 = 0; string playerName = string.Empty; int playerLv = 1; COM_PLAYERCAMP playerCamp = COM_PLAYERCAMP.COM_PLAYERCAMP_1; string str2 = string.Empty; int num6 = 1; COM_PLAYERCAMP com_playercamp2 = COM_PLAYERCAMP.COM_PLAYERCAMP_1; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { bool flag = true; if (settleData.stGameInfo.bGameResult == 1) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; if (current.Value.IsHost) { flag = true; } else { flag = false; } } else { KeyValuePair <uint, PlayerKDA> pair2 = enumerator.Current; if (pair2.Value.IsHost) { flag = false; } else { flag = true; } } if (flag) { KeyValuePair <uint, PlayerKDA> pair3 = enumerator.Current; ListView <HeroKDA> .Enumerator enumerator2 = pair3.Value.GetEnumerator(); while (enumerator2.MoveNext() && (num <= 3)) { GameObject gameObject = form.gameObject.transform.Find("Panel/Left_Player" + num).gameObject; KeyValuePair <uint, PlayerKDA> pair4 = enumerator.Current; SetPlayerStat(form, gameObject, pair4.Value, enumerator2.Current); num++; } KeyValuePair <uint, PlayerKDA> pair5 = enumerator.Current; num3 += pair5.Value.numKill; KeyValuePair <uint, PlayerKDA> pair6 = enumerator.Current; playerName = pair6.Value.PlayerName; KeyValuePair <uint, PlayerKDA> pair7 = enumerator.Current; playerCamp = pair7.Value.PlayerCamp; KeyValuePair <uint, PlayerKDA> pair8 = enumerator.Current; playerLv = pair8.Value.PlayerLv; } else { KeyValuePair <uint, PlayerKDA> pair9 = enumerator.Current; ListView <HeroKDA> .Enumerator enumerator3 = pair9.Value.GetEnumerator(); while (enumerator3.MoveNext() && (num2 <= 3)) { GameObject item = form.gameObject.transform.Find("Panel/Right_Player" + num2).gameObject; KeyValuePair <uint, PlayerKDA> pair10 = enumerator.Current; SetPlayerStat(form, item, pair10.Value, enumerator3.Current); num2++; } KeyValuePair <uint, PlayerKDA> pair11 = enumerator.Current; num4 += pair11.Value.numKill; KeyValuePair <uint, PlayerKDA> pair12 = enumerator.Current; str2 = pair12.Value.PlayerName; KeyValuePair <uint, PlayerKDA> pair13 = enumerator.Current; com_playercamp2 = pair13.Value.PlayerCamp; KeyValuePair <uint, PlayerKDA> pair14 = enumerator.Current; num6 = pair14.Value.PlayerLv; } } for (int i = num; i <= 3; i++) { form.gameObject.transform.Find("Panel/Left_Player" + i).gameObject.CustomSetActive(false); } for (int j = num2; j <= 3; j++) { form.gameObject.transform.Find("Panel/Right_Player" + j).gameObject.CustomSetActive(false); } Text component = form.gameObject.transform.Find("Panel/PanelABg/Image/ImageLeft/Txt_LeftPlayerName").gameObject.GetComponent <Text>(); component.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = string.Format("Lv.{0}", playerLv); component.text = playerName; component.color = (playerCamp != COM_PLAYERCAMP.COM_PLAYERCAMP_1) ? new Color(0.545f, 0f, 0f, 1f) : new Color(0.031f, 0.961f, 0f, 1f); component = form.gameObject.transform.Find("Panel/PanelABg/Image/ImageRight/Txt_RightPlayerName").gameObject.GetComponent <Text>(); component.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().text = string.Format("Lv.{0}", num6); component.text = str2; component.color = (com_playercamp2 != COM_PLAYERCAMP.COM_PLAYERCAMP_1) ? new Color(0.545f, 0f, 0f, 1f) : new Color(0.031f, 0.961f, 0f, 1f); }
public void BattleStart() { if (this._heroWrapDict != null) { return; } this._lastUpdateFrame = 0u; this.TargetHeroId = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer().Captain.handle.ObjID; this._heroWrapDict = new DictionaryView <uint, HeroInfoItem>(); if (WatchForm.IsNeedShowCampMidInterface()) { this._heroWrapSideDict = new DictionaryView <uint, HeroInfoSideItem>(); } List <HeroKDA> list = new List <HeroKDA>(); List <HeroKDA> list2 = new List <HeroKDA>(); CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; PlayerKDA value = current.get_Value(); if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_1) { ListView <HeroKDA> .Enumerator enumerator2 = value.GetEnumerator(); while (enumerator2.MoveNext()) { list.Add(enumerator2.Current); } } else if (value.PlayerCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_2) { ListView <HeroKDA> .Enumerator enumerator3 = value.GetEnumerator(); while (enumerator3.MoveNext()) { list2.Add(enumerator3.Current); } } } this.InitCampInfoUIList(COM_PLAYERCAMP.COM_PLAYERCAMP_1, list, this._camp1BaseList, this._camp1EquipList, this._camp1BaseSideList); this.InitCampInfoUIList(COM_PLAYERCAMP.COM_PLAYERCAMP_2, list2, this._camp2BaseList, this._camp2EquipList, this._camp2BaseSideList); Singleton <WatchController> .GetInstance().SwitchObserveCamp(COM_PLAYERCAMP.COM_PLAYERCAMP_COUNT); this.FocusHero(this.TargetHeroId); this.ValidateCampMoney(); if (this._heroInfoHud != null) { this._heroInfoHud.FightStart(); } this.RegisterEvents(); this._isBottomFold = false; this._isCampFold_1 = false; this.OnClickCampFold_1(null); this._isCampFold_2 = false; this.OnClickCampFold_2(null); this._isBottomLong = true; this.OnClickBottomEquipFold(null); this._isViewHide = false; float step = 150u * Singleton <WatchController> .GetInstance().FrameDelta * 0.001f; this.moneySample = new SampleData(step); this.expSample = new SampleData(step); this.dragonKillInfos.Clear(); this._lastSampleTime = 0f; Moba_Camera mobaCamera = MonoSingleton <CameraSystem> .GetInstance().MobaCamera; this.m_targetScaleVal = 1.2f; if (null != mobaCamera) { mobaCamera.currentZoomRate = 1.2f; mobaCamera.CameraUpdate(); } }
public static void SetBurnSettleData(CUIFormScript form, ref COMDT_SETTLE_RESULT_DETAIL settleData) { CPlayerKDAStat playerKDAStat = Singleton <BattleLogic> .GetInstance().battleStat.m_playerKDAStat; CSingleGameSettleView.SetWin(form.gameObject, settleData.stGameInfo.bGameResult == 1); int num = 1; int num2 = 1; int num3 = 0; int num4 = 0; string text = string.Empty; int num5 = 1; COM_PLAYERCAMP cOM_PLAYERCAMP = COM_PLAYERCAMP.COM_PLAYERCAMP_1; string text2 = string.Empty; int num6 = 1; COM_PLAYERCAMP cOM_PLAYERCAMP2 = COM_PLAYERCAMP.COM_PLAYERCAMP_1; DictionaryView <uint, PlayerKDA> .Enumerator enumerator = playerKDAStat.GetEnumerator(); while (enumerator.MoveNext()) { bool flag; if (settleData.stGameInfo.bGameResult == 1) { KeyValuePair <uint, PlayerKDA> current = enumerator.Current; flag = current.get_Value().IsHost; } else { KeyValuePair <uint, PlayerKDA> current2 = enumerator.Current; flag = !current2.get_Value().IsHost; } if (flag) { KeyValuePair <uint, PlayerKDA> current3 = enumerator.Current; ListView <HeroKDA> .Enumerator enumerator2 = current3.get_Value().GetEnumerator(); while (enumerator2.MoveNext() && num <= 3) { GameObject gameObject = form.gameObject.transform.Find("Panel/Left_Player" + num).gameObject; GameObject item = gameObject; KeyValuePair <uint, PlayerKDA> current4 = enumerator.Current; CSingleGameSettleView.SetPlayerStat(form, item, current4.get_Value(), enumerator2.Current); num++; } int num7 = num3; KeyValuePair <uint, PlayerKDA> current5 = enumerator.Current; num3 = num7 + current5.get_Value().numKill; KeyValuePair <uint, PlayerKDA> current6 = enumerator.Current; text = current6.get_Value().PlayerName; KeyValuePair <uint, PlayerKDA> current7 = enumerator.Current; cOM_PLAYERCAMP = current7.get_Value().PlayerCamp; KeyValuePair <uint, PlayerKDA> current8 = enumerator.Current; num5 = current8.get_Value().PlayerLv; } else { KeyValuePair <uint, PlayerKDA> current9 = enumerator.Current; ListView <HeroKDA> .Enumerator enumerator3 = current9.get_Value().GetEnumerator(); while (enumerator3.MoveNext() && num2 <= 3) { GameObject gameObject2 = form.gameObject.transform.Find("Panel/Right_Player" + num2).gameObject; GameObject item2 = gameObject2; KeyValuePair <uint, PlayerKDA> current10 = enumerator.Current; CSingleGameSettleView.SetPlayerStat(form, item2, current10.get_Value(), enumerator3.Current); num2++; } int num8 = num4; KeyValuePair <uint, PlayerKDA> current11 = enumerator.Current; num4 = num8 + current11.get_Value().numKill; KeyValuePair <uint, PlayerKDA> current12 = enumerator.Current; text2 = current12.get_Value().PlayerName; KeyValuePair <uint, PlayerKDA> current13 = enumerator.Current; cOM_PLAYERCAMP2 = current13.get_Value().PlayerCamp; KeyValuePair <uint, PlayerKDA> current14 = enumerator.Current; num6 = current14.get_Value().PlayerLv; } } for (int i = num; i <= 3; i++) { GameObject gameObject3 = form.gameObject.transform.Find("Panel/Left_Player" + i).gameObject; gameObject3.CustomSetActive(false); } for (int j = num2; j <= 3; j++) { GameObject gameObject4 = form.gameObject.transform.Find("Panel/Right_Player" + j).gameObject; gameObject4.CustomSetActive(false); } Text component = form.gameObject.transform.Find("Panel/PanelABg/Image/ImageLeft/Txt_LeftPlayerName").gameObject.GetComponent <Text>(); component.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().set_text(string.Format("Lv.{0}", num5)); component.set_text(text); component.set_color((cOM_PLAYERCAMP == COM_PLAYERCAMP.COM_PLAYERCAMP_1) ? new Color(0.031f, 0.961f, 0f, 1f) : new Color(0.545f, 0f, 0f, 1f)); component = form.gameObject.transform.Find("Panel/PanelABg/Image/ImageRight/Txt_RightPlayerName").gameObject.GetComponent <Text>(); component.gameObject.transform.FindChild("Text").gameObject.GetComponent <Text>().set_text(string.Format("Lv.{0}", num6)); component.set_text(text2); component.set_color((cOM_PLAYERCAMP2 == COM_PLAYERCAMP.COM_PLAYERCAMP_1) ? new Color(0.031f, 0.961f, 0f, 1f) : new Color(0.545f, 0f, 0f, 1f)); }