forked from endernon/PGRData
12 lines
391 B
Lua
12 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
|
||
|
|