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

9 lines
No EOL
347 B
Lua

local XGuideIsJoinGuildNode = XLuaBehaviorManager.RegisterNode(XLuaBehaviorNode, "IsJoinGuild", CsBehaviorNodeType.Condition, true, false)
function XGuideIsJoinGuildNode:OnEnter()
if XDataCenter.GuildManager.IsJoinGuild() then
self.Node.Status = CsNodeStatus.SUCCESS
else
self.Node.Status = CsNodeStatus.FAILED
end
end