Merge branch 'china/dev' into 0活动开发聚集地/福星高照

dev_chengFeng
ZhangBiao 2021-03-30 20:28:12 +08:00
commit 98a49ad693
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)