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

12 lines
391 B
Lua
Raw Normal View History

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