Ejemplo n.º 1
0
 private void ShowNextSnapshot()
 {
     if (gridSnapshotActionList.Count > 0)
     {
         GridSnapshotAction gridSnapshotAction = gridSnapshotActionList[0];
         gridSnapshotActionList.RemoveAt(0);
         gridSnapshotAction.TriggerAction();
     }
 }
 // Shows the previous snapshot
 void ShowPreviousSnapshot()
 {
     if (snapshotIndex > 0)
     {
         snapshotIndex--;
         GridSnapshotAction gridSnapshotAction = gridSnapshotActions[snapshotIndex];
         gridSnapshotAction.TriggerAction();
         control.snapshotStatus.text = "Press ENTER to move to next algorithm\nSnapshot index: " + (snapshotIndex + 1) + "/" + gridSnapshotActions.Count;
     }
 }