From 5b41289cd036837b8b089f4e4bcfdb4f8809faca Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Wed, 13 Oct 2021 15:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=89=E8=99=9A=E8=AE=BA=E9=81=93=E9=98=B5?= =?UTF-8?q?=E5=AE=B9=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/FormationPanelV2.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua index 2c77486e5f..2e0bdb8eb8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationPanelV2.lua @@ -594,9 +594,16 @@ function this.SetRoleList(_roleDatas, isTop,isAni) else this.SortHeroDatas(_roleDatas) end + + --刷新玉虚论道缓存的阵容数据 if this.curFormationIndex==2001 or this.curFormationIndex==2002 or this.curFormationIndex==2003 then this.opView.RemoveTeamByIndex(this.curFormationIndex) + for i,v in pairs(this.choosedList) do + --LogError("刷新添加=== id=="..v.heroId.." pos=="..v.position) + this.opView.AddHeroToTeam(v.heroId,v.position,this.curFormationIndex) + end end + -- local curFormation = FormationManager.formationList[this.curFormationIndex] this.scrollView:SetData(_roleDatas, function(index, go) this.SingleHeroDataShow(go, _roleDatas[index]) @@ -775,9 +782,6 @@ function this.SingleHeroDataShow(_go, _heroData) for i,v in pairs(this.choosedList) do if(heroData.dynamicId==v.heroId) then choosedObj:SetActive(true) - if this.curFormationIndex==2001 or this.curFormationIndex==2002 or this.curFormationIndex==2003 then - this.opView.AddHeroToTeam(heroData.dynamicId,v.position,this.curFormationIndex) - end end end if panelType == FORMATION_TYPE.WORLDARENA then