PGRData/Script/matrix/xentity/xbiancatheatre/adventure/node/event/XMovieEventNode.lua
2024-09-01 22:49:41 +02:00

17 lines
No EOL
624 B
Lua

local XAEventNode = require("XEntity/XBiancaTheatre/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("UiBiancaTheatreOutpost")
end
XDataCenter.MovieManager.PlayMovie(self.EventConfig.StoryId, callback)
end)
end
function XMovieEventNode:GetIsTriggerWithDirect()
return true
end
return XMovieEventNode