public static void NextLesson() { FlowControl.MenuState = false; List <Lesson> lessons = CustomLessons.GetInstance().GetLessons(); int index = -1; for (int i = 0; i < lessons.Count; i++) { if (lessons[i].GetSceneName().Equals(currentSlides.GetSceneName())) { index = i; break; } } if (index != -1 && index + 1 < lessons.Count) { //FlowControl.SetLesson(lessons[index+1].GetSceneName()); //Application.LoadLevel ("Lesson_Loader"); GoToLessonScreen(); } else { GoToLessonScreen(); } }