local FuncNode_Min = class("FuncNode_Min") --[[ 初始化 --]] function FuncNode_Min:initialize(entity) self.LimitChildCount = 3 self.Type = LuaConst.ConditionFuncType.Min end --[[ 执行 --]] function FuncNode_Min:Run(conditionDataNode, entity, missile, buffObject, params) local result = conditionDataNode.FirstNode:Run(entity, missile, buffObject, params) if conditionDataNode.SecondNode then local second = conditionDataNode.SecondNode:Run(entity, missile, buffObject, params) if result > second then result = second end end if conditionDataNode.ThirdNode then local third = conditionDataNode.ThirdNode:Run(entity, missile, buffObject, params) if result > third then result = third end end return result end return FuncNode_Min