推进城界面修改

wangzhenxing 2024-03-08 14:47:21 +08:00
parent e3a70ead03
commit a40effc79e
1 changed files with 4 additions and 2 deletions

View File

@ -99,9 +99,11 @@ function QiJieShiLianMonsterInfo:FormationAdapter()
-- heroListGo[i].transform.parent:GetComponent("Image").sprite=self.spLoader:LoadSprite("t_chengyuankuang_kuang")
self:SetCardSingleData(heroListGo[i],bossTeaminfo[i],i)
heroListGo[i]:SetActive(true)
Util.GetGameObject(heroListGo[i], "Mask/icon"):SetActive(true)
else
heroListGo[i]:SetActive(true)
Util.GetGameObject(heroListGo[i],"lv/Text"):GetComponent("Text").text=""
Util.GetGameObject(heroListGo[i], "Mask/icon"):SetActive(false)
end
end
ResetItemView(self.root,self.root.transform,itemList,5,1,sortingOrder,false,rewardData)
@ -122,7 +124,7 @@ function QiJieShiLianMonsterInfo:SetCardSingleData(o,monsterId, _pos)
hp:SetActive(false)
local rage = Util.GetGameObject(o,"rageProgress")
rage:SetActive(false)
LogError("monsterId================="..monsterId)
local monsterconfig = ConfigManager.GetConfigData(ConfigName.MonsterConfig, monsterId)
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, monsterconfig.MonsterId)
@ -162,7 +164,7 @@ function QiJieShiLianMonsterInfo:SetCardSingleData(o,monsterId, _pos)
end
local effect = Util.GetGameObject(o,"UI_Effect_jinkuang_KaPai")
effect.gameObject:SetActive(monsterconfig.Star > 9)
effect.gameObject:SetActive(false)
SetHeroFormationFlyEffect(o,self.spLoader,effect,monsterconfig.Star,sortingOrder)
Util.SetParticleSortLayer(effect.gameObject, sortingOrder + 1)
end