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