local FuncNode_Less = class("FuncNode_Less") --[[ 初始化 --]] function FuncNode_Less:initialize(entity) self.LimitChildCount = 2 self.Type = LuaConst.ConditionFuncType.Less end --[[ 执行 --]] function FuncNode_Less:Run(conditionDataNode, entity, missile, buffObject, params) local first = conditionDataNode.FirstNode:Run(entity, missile, buffObject, params) local second = conditionDataNode.SecondNode:Run(entity, missile, buffObject, params) if not first or not second then return FP.Const.Zero end if first < second then return FP.Const.One else return FP.Const.Zero end end return FuncNode_Less