森罗幻境 修改

jiaoyangna 2020-10-15 21:26:19 +08:00
parent b4da41b5e5
commit 5a17813275
1 changed files with 12 additions and 2 deletions

View File

@ -483,7 +483,7 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
table.insert(MapManager.trialHeroInfo,{heroId=h.dynamicId,tmpId=h.id,star=h.star,heroHp=10000,level=h.lv})
end
end
d=MapManager.trialHeroInfo
d = MapManager.trialHeroInfo
for k = 1, this.s_grid.transform.childCount do
this.s_grid.transform:GetChild(k-1).gameObject:SetActive(false)
end
@ -544,7 +544,17 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
end
end
else
choosed:SetActive(MapTrialManager.selectHeroDid==v.heroId)
if MapTrialManager.selectHeroDid ~= "" then
choosed:SetActive(MapTrialManager.selectHeroDid==v.heroId and v.heroHp >0)
else
if v.heroHp >0 then
choosed:SetActive(true)
MapTrialManager.selectHeroDid=v.heroId
else
choosed:SetActive(false)
MapTrialManager.selectHeroDid=""
end
end
end
--血量相关