主城角色移动修改

onepiece_demo_arena
xiejun 2023-12-05 14:59:31 +08:00
parent 2f351a2052
commit 9f64b30380
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ function MainPlayerView:SetRolePos(pos, delay, func)
end):OnStart(function ()
if math.abs(dX) >= math.abs(dY) then
if dX > 0 then
self:SetWalkDir(WALK_DIR.RUN_RIGHT)
else
self:SetWalkDir(WALK_DIR.RUN_LEFT)
else
self:SetWalkDir(WALK_DIR.RUN_RIGHT)
end
else
if dY > 0 then