if targetX > mobX then
-- newInputX = 3
newInputX = 1
else
-- newInputX = -3
newInputX = 1
end
else
newInputX = math.max(targetX - mobX - 1.2, -3)
end
else
nextAction = (_GlobalRand32:RandomIntegerRange(200, 210) / 1000)
newInputX = _UserService.LocalPlayer.TransformComponent.WorldPosition.x - mobX - 1.2
end
맞음??
댓글1
ㅇ