【坐骑】修复展示界面不居中
parent
e077b70f02
commit
e1381636e1
|
|
@ -203,6 +203,18 @@ function this.SingleRideClickShowInfo(data,go)
|
|||
}
|
||||
live2dRoot2 = PlayerLiveView:New(this.live2dRootParent2,2, ridePlayerLiveViewData)
|
||||
live2dRoot2:OnOpen(GetPlayerRoleSingleConFig().Scale8,nil,WALK_DIR.IDLE_LEFT)
|
||||
|
||||
|
||||
local PlayerRoleConFig = ConfigManager.GetConfigData(ConfigName.PlayerRole,curPlayerHeadIconConfig.ItemId)
|
||||
local offset = Vector3.New(0, 0, 0)
|
||||
-- 获取向左时的偏移值
|
||||
if PlayerRoleConFig and PlayerRoleConFig.RideOffset and PlayerRoleConFig.RideOffset[3] then
|
||||
offset.x = PlayerRoleConFig.RideOffset[3][1]
|
||||
offset.y = PlayerRoleConFig.RideOffset[3][2]
|
||||
end
|
||||
live2dRoot.transform.localPosition = Vector3.New(281, 682, 0) - offset * GetPlayerRoleSingleConFig().Scale7
|
||||
live2dRoot2.transform.localPosition = Vector3.New(6, 180, 0) - offset * GetPlayerRoleSingleConFig().Scale8
|
||||
|
||||
else
|
||||
this.jingqingqidai.gameObject:SetActive(true)
|
||||
this.smallShow.gameObject:SetActive(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue