miduo_client/Assets/ManagedResources/~Lua/Modules/Mission/Behaviour/BHMoveTo.lua

21 lines
504 B
Lua
Raw Normal View History

2020-08-06 17:52:32 +08:00
--- 移动
2020-05-09 13:31:21 +08:00
local BHMoveTo = {}
local this = BHMoveTo
function this.Excute(arg, func)
local mapID = arg.mapID
local point = arg.point
if not point and arg.u and arg.v then
point = arg.u * 256 + arg.v
end
--if mapID and mapID ~= MapManager.curMapId then
-- Game.GlobalEvent:DispatchEvent(GameEvent.Map.Out, mapID)
--end
if point then
Game.GlobalEvent:DispatchEvent(GameEvent.Map.Transport, point)
end
if func then func() end
end
2020-06-23 18:36:24 +08:00
return this