Пример #1
0
        public static Node MoveNext(Node node)
        {
            if (NodeTypes.getNodeData (node).transitions == false)
            {
                Debug.LogError ("Node " + node.ToString () + " does not accept Transitions!");
                return null;
            }

            for (int transCnt = 0; transCnt < node.transitions.Count; transCnt++)
            {
                if (node.transitions[transCnt].conditionsMet ())
                    return node.transitions[transCnt].endNode;
            }

            return node;
        }