PGRData/Script/matrix/xentity/xtheatre/adventure/node/event/XMovieEventNode.lua

17 lines
No EOL
612 B
Lua

local XAEventNode = require("XEntity/XTheatre/Adventure/Node/Event/XAEventNode")
local XMovieEventNode = XClass(XAEventNode, "XMovieEventNode")
function XMovieEventNode:RequestTriggerNode(callback)
XMovieEventNode.Super.RequestTriggerNode(self, function(newEventNode)
if newEventNode == nil then -- 剧情是最后一个节点,直接关掉界面
XLuaUiManager.Remove("UiTheatreOutpost")
end
XDataCenter.MovieManager.PlayMovie(self.EventConfig.StoryId, callback)
end)
end
function XMovieEventNode:GetIsTriggerWithDirect()
return true
end
return XMovieEventNode