Game Development Reference
In-Depth Information
local result = _EvaluateSelector(
self, child, deltaTimeInMillis);
if (result.result) then
return result;
end
elseif (child.type_ ==
BehaviorTreeNode.Type.SEQUENCE) then
-- Evaluate a sequence, if it returns
successfully
-- then return the result.
-- The result of a sequence may not contain a
node to
-- execute.
local result = _EvaluateSequence(
self, child, deltaTimeInMillis);
if (result.result) then
return result;
end
end
end
return { result = false };
end
Search WWH ::




Custom Search