2020-08-25 15:46:38 +08:00
|
|
|
|
--- 移动
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local BHMoveTo = {}
|
|
|
|
|
local this = BHMoveTo
|
|
|
|
|
|
|
|
|
|
function this.Excute(arg, func)
|
|
|
|
|
local mission = arg.mission
|
|
|
|
|
local drop = arg.drop
|
|
|
|
|
local isMissionDone = MissionManager.MainMissionIsDone(mission.itemId)
|
|
|
|
|
if isMissionDone then
|
|
|
|
|
Game.GlobalEvent:DispatchEvent(GameEvent.Mission.OnMissionEnd, mission)
|
|
|
|
|
if #drop.itemlist > 0 or #drop.equipId > 0 or #drop.Hero > 0 then
|
|
|
|
|
--UIManager.OpenPanel(UIName.MissionRewardPanel, drop, 2)
|
|
|
|
|
UIManager.OpenPanel(UIName.RewardItemPopup, drop, 2, nil, 2)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
if func then func() end
|
|
|
|
|
end
|
|
|
|
|
|
2020-06-23 18:36:24 +08:00
|
|
|
|
return this
|