【主界面】扩大场景的显示范围
parent
9ca4850841
commit
c88cd5b7e1
|
@ -261,8 +261,8 @@ function this:BindEvent()
|
|||
|
||||
local setPosFunc = function(v2)
|
||||
local av2 = self.bgTran.anchoredPosition
|
||||
local dv2 = Vector2.New(math.clamp(v2.x + av2.x, -1500, 50), av2.y)
|
||||
if v2.x + av2.x < -1500 or v2.x + av2.x > 50 then
|
||||
local dv2 = Vector2.New(math.clamp(v2.x + av2.x, -1600, 150), av2.y)
|
||||
if v2.x + av2.x < -1600 or v2.x + av2.x > 150 then
|
||||
self.moveTween:Rebound(1, 0.1)
|
||||
end
|
||||
this:SetPosFunc(dv2)
|
||||
|
|
Loading…
Reference in New Issue