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

17 lines
624 B
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
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