// Run the decision tree and execute the returned action private void Update() { ActionNode actionNode = root.MakeDecision() as ActionNode; actionNode.Execute(); }
static void Main(string[] args) { ActionNode an = new ActionNode(TestAction); an.Execute(); }