void Update() { if (startNode != null) { currentNode = startNode; while (currentNode != null) { currentNode.MakeDecision(); currentNode = currentNode.GetNode(); } } }