【称号】优化称号在老包中的显示
parent
be558c88f8
commit
8d6168a7d9
|
@ -84,14 +84,17 @@ Material:
|
|||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Rotator: 0
|
||||
- _Rotator_copy: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _U: 0.2
|
||||
- _UVSec: 0
|
||||
- _U_Speed: 0.1
|
||||
- _U_Speed_copy: -0.5
|
||||
- _V: 0.7
|
||||
- _V_Speed: 0.1
|
||||
- _V_Speed_copy: -0.5
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
|
|
|
@ -83,9 +83,19 @@ function PlayerTitle:SetScale(scale)
|
|||
end
|
||||
|
||||
function PlayerTitle:SetEffectScale(effectScale)
|
||||
if isScaleActive then
|
||||
if self.titleLive then
|
||||
Util.SetParticleScale(self.titleLive, effectScale)
|
||||
if self.titleLive then
|
||||
Util.SetParticleScale(self.titleLive, effectScale)
|
||||
-- 老包称号显示优化
|
||||
if not isScaleActive then
|
||||
local particles = self.titleLive:GetComponentsInChildren(typeof(UnityEngine.ParticleSystem))
|
||||
local isScale = false
|
||||
for key, value in pairs(particles:ToTable()) do
|
||||
value.transform.localScale = value.transform.localScale / effectScale
|
||||
isScale = true
|
||||
end
|
||||
if isScale then
|
||||
self.titleLive.transform.localScale = self.titleLive.transform.localScale / effectScale
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue