战斗表现修改

dev_chengFeng
wangzhenxing 2022-05-24 14:09:01 +08:00
parent bbd485f56f
commit f4545f127c
2 changed files with 7 additions and 0 deletions

View File

@ -219,6 +219,8 @@ function EnemyView:onCreate(go, role, position, root, isBoss,enemyId)
self.proPar:SetActive(true)
self.nameObj:SetActive(false)
end
else
self.nameObj:SetActive(false)
end
end

View File

@ -87,13 +87,18 @@ function PlayerView:onCreate(go, role, position, root)
self.nameObj=Util.GetGameObject(go, "GameObject")
self.nameObj:SetActive(false)
if BattlePanel and BattlePanel.guideType then
LogError("11111111111111==="..BattlePanel.guideType)
if BattlePanel.guideType==3 then
LogError("222222222")
self.nameParent:SetActive(true)
self.proPar:SetActive(true)
else
self.nameParent:SetActive(false)
self.proPar:SetActive(false)
end
else
self.nameParent:SetActive(false)
self.proPar:SetActive(false)
end
self.bg1.sprite = self.spLoader:LoadSprite(GetBattleHeroCardStarBg[role.roleData.star])
self.bg2.sprite = self.spLoader:LoadSprite(GetHeroCardStarFg[role.roleData.star])