[战斗表现]===============敌我前后排立绘缩放大小固定
parent
670320141c
commit
b74561d70b
|
@ -157759,7 +157759,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: -20, y: 206}
|
||||
m_AnchoredPosition: {x: -20, y: 161}
|
||||
m_SizeDelta: {x: 1100, y: 202.5}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &4929751347603845043
|
||||
|
|
|
@ -289,7 +289,8 @@ function EnemyView:DoScale(scale, dur, func)
|
|||
if self.dsTween2 then
|
||||
self.dsTween2:Kill()
|
||||
end
|
||||
local liveScale = self.role.position <= 3 and 0.6 or 0.5
|
||||
--local liveScale = self.role.position <= 3 and 0.6 or 0.5
|
||||
local liveScale=0.6
|
||||
self.dsTween2 = self.RoleLiveGO.transform.parent:DOScale(Vector3.one * liveScale * scale, dur)
|
||||
|
||||
end
|
||||
|
|
|
@ -151,7 +151,7 @@ function PlayerView:onCreate(go, role, position, root)
|
|||
self.rageText.text = ""
|
||||
self.lvHpObj=Util.GetGameObject(go, "lvObj")
|
||||
if position<=3 then
|
||||
self.lvHpObj:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,450,0)
|
||||
self.lvHpObj:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,470,0)
|
||||
else
|
||||
self.lvHpObj:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,0,0)
|
||||
end
|
||||
|
@ -313,7 +313,8 @@ function PlayerView:DoScale(scale, dur, func)
|
|||
if self.dsTween2 then
|
||||
self.dsTween2:Kill()
|
||||
end
|
||||
local liveScale = self.role.position <= 3 and 0.6 or 0.5
|
||||
--local liveScale = self.role.position <= 3 and 0.6 or 0.5
|
||||
local liveScale = 0.6
|
||||
self.dsTween2 = self.RoleLiveGO.transform.parent:DOScale(Vector3.one * liveScale * scale, dur)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue