PGRData/Resources/Scripts/XGuide/Node/XGuideEndNode.lua
2022-12-26 14:06:01 +05:30

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