// go from the one end node to the next end node in the AOG graph // un-highlight the previous step // highlight the current step public void goOneStep() { currentAction.highLightNode(false); nextAction.highLightNodePath(false); SimpleTree.nextActionSecondHalf = ""; currentAction = nextAction; nextAction = SimpleTree.TravelToNextEndNode(nextAction, true); currentAction.highLightNode(true); if (nextAction == null) { SimpleTree.nextActionFirstHalf = "Sequence Finished!"; resetStepper(); } nextAction.highLightNodePath(true); Debug.Log(SimpleTree.nextActionFirstHalf); Debug.Log(SimpleTree.nextActionSecondHalf); statusText.text = SimpleTree.nextActionFirstHalf + "\n" + SimpleTree.nextActionSecondHalf; string currentActionName = currentAction.getActionName().ToLower(); udpManager.executeAction(currentActionName); stcPanelControl.loadNewImage(currentActionName); }