private void AdvanceReader() { if (reader.HasNext) { switch (iterationMode) { case IterationMode.ActionByAction: reader.GetNextStudentAction(); break; case IterationMode.FinalStates: reader.GetNextStudentAction(); while (reader.HasNext && reader.Current.IsSameAttempt(reader.Previous)) { reader.GetNextStudentAction(); } Debug.Log("Current: " + reader.Current); break; } } }