PGRData/Script/matrix/xguide/node/XGuideEndNode.lua

11 lines
391 B
Lua

local XGuideEndNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "GuideEnd",CsBehaviorNodeType.Action,true,false)
function XGuideEndNode:OnStart()
self.GuideId = self.BehaviorTree:GetLocalField("GuideId").Value
end
function XGuideEndNode:OnEnter()
self.Node.Status = CsNodeStatus.SUCCESS
CsXGameEventManager.Instance:Notify(XEventId.EVENT_GUIDE_END, self.GuideId)
end