【主界面】扩大场景的显示范围

dev_chengFeng
gaoxin 2021-03-30 20:22:57 +08:00
parent 9ca4850841
commit c88cd5b7e1
1 changed files with 2 additions and 2 deletions

View File

@ -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)