local FuncNode_LessOrEqual = class("FuncNode_LessOrEqual") --[[ 初始化 --]] function FuncNode_LessOrEqual:initialize(entity) self.LimitChildCount = 2 self.Type = LuaConst.ConditionFuncType.LessOrEqual end --[[ 执行 --]] function FuncNode_LessOrEqual: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_LessOrEqual