private IEnumerator ShowSlide(int index) { canSwitchSlides = false; if (index == 1) { SlideOne(); } if (index == 2) { SlideTwo(); } if (index == 3) { SlideThree(); } if (index == 4) { SlideFour(); } if (index == 5) { SlideFive(); } if (index == 6) { SlideSix(); } if (index == 7) { SlideSeven(); } if (index == 8) { SlideEight(); } if (index == 9) { SlideNine(); } if (index == 10) { SlideTen(); } if (index == 11) { SlideEleven(); } if (index == 12) { SlideTwelve(); } if (index == 13) { SlideThirteen(); } if (index == 14) { SlideFourteen(); } if (index == 1) { FocusLeft(); } //Create example enemies and show/hide regions if (index == 4) { tutorialController.CreateFloaterEnemies(); FocusRight(); } if (index == 5) { tutorialController.testLevel.DestroyAllEnemies(); tutorialController.CreateFloaterEnemiesHarmful(); } if (index == 7) { tutorialController.testLevel.DestroyAllEnemies(); tutorialController.CreateStars(); } if (index == 8) { tutorialController.testLevel.DestroyAllEnemies(); tutorialController.CreateBombEnemies(); } if (index == 9) { FocusLeft(); tutorialController.testLevel.DestroyAllEnemies(); } //Estimates the time taken for text to fade in yield return(new WaitForSeconds(1f)); canSwitchSlides = true; }