【称号】显示再优化,老包也能正常显示

dev_chengFeng
gaoxin 2021-06-08 14:06:12 +08:00
parent 52e975ccf6
commit 498bc9a9b5
3 changed files with 8 additions and 7 deletions

View File

@ -901,11 +901,11 @@ namespace GameLogic
main.startRotationMultiplier *= scale;
}
main.startSpeedMultiplier *= scale;
//particle.transform.localScale *= scale;
particle.transform.localScale *= scale;
}
if (hasParticleObj)
{
//go.transform.localScale = new Vector3(scale, scale, scale);
go.transform.localScale = new Vector3(scale, scale, scale);
}
}

View File

@ -180,7 +180,7 @@ function PlayerLiveView:OnShowLive()
else
effect=self.leader.transform.localScale.x
end
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale*effect,self.orginLayer)
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale * effect,self.orginLayer)
end
end
function PlayerLiveView:SetNameHeight(hei)

View File

@ -58,12 +58,12 @@ function PlayerTitle:SetShow(itemId, position, scale, effectScale, layer)
if position then
self:SetPostion(position)
end
if scale then
self:SetScale(scale)
end
if effectScale then
self:SetEffectScale(effectScale)
end
if scale then
self:SetScale(scale)
end
if layer then
self:SetLayer(layer)
end
@ -77,6 +77,7 @@ end
function PlayerTitle:SetScale(scale)
self.scale = scale
if self.titleLive then
self.titleLive.transform.localScale = Vector3.one * scale
end
@ -94,7 +95,7 @@ function PlayerTitle:SetEffectScale(effectScale)
isScale = true
end
if isScale then
self.titleLive.transform.localScale = self.titleLive.transform.localScale / effectScale
self.titleLive.transform.localScale = Vector3.one * (self.scale or 1)
end
end
end