[战中表现]=====角色释放技能表现位置修改
parent
0ce834e220
commit
bc39b34a73
|
@ -108,7 +108,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss,enemyId)
|
|||
local mirrOffset=RoleConfig[roleId].mirrorimage_offset
|
||||
if mirrOffset and mirrOffset[1]~=0 and mirrOffset[2]~=0 then
|
||||
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2])
|
||||
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2])
|
||||
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2]+400)
|
||||
end
|
||||
|
||||
self.RoleLiveGO:GetComponent("RectTransform").rotation = Quaternion.Euler(Vector3.New(0,180, 0))
|
||||
|
|
|
@ -133,7 +133,7 @@ function PlayerView:onCreate(go, role, position, root)
|
|||
local mirrOffset=RoleConfig[roleId].mirrorimage_offset
|
||||
if mirrOffset and mirrOffset[1]~=0 and mirrOffset[2]~=0 then
|
||||
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2])
|
||||
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2])
|
||||
self.RoleLiveGO2:GetComponent("RectTransform").anchoredPosition = Vector2.New(mirrOffset[1],mirrOffset[2]-300)
|
||||
end
|
||||
self.RoleLiveGO:GetComponent("RectTransform").rotation = Quaternion.Euler(Vector3.New(0,180, 0))
|
||||
self.RoleLiveGO2:GetComponent("RectTransform").rotation = Quaternion.Euler(Vector3.New(0,180, 0))
|
||||
|
|
Loading…
Reference in New Issue