diff --git a/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua index d5e8a9bea2..4a2d0f2455 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua @@ -1,4 +1,4 @@ -require("Modules/Map/Logic/TileMapView") +require("Modules/Map/Logic/TileMapView") local this = {} local ctrlView = require("Modules/Map/View/MapControllView") @@ -22,7 +22,7 @@ local idleFunc = function() this.NpcGO:SetWalkDir(WALK_DIR.IDLE_FRONT) end end -local index = Random.Range(9,11) +local index = math.random(9,11) local AnimTimer = Timer.New(function () if not isRoleWalk and this.leader then--SkeletonGraphic and PlayUIAnim(Util.GetGameObject(this.leader, "root/ui/arrow"))