public void PauseAnimation() { if (!animationPaused) { autoRotator.GetComponent <Animator>().enabled = false; narrator.PauseNarration(); animationPaused = true; TogglePauseUI("Play/Stop Animation", 0); } else { autoRotator.GetComponent <Animator>().enabled = true; narrator.ResumeNarration(); animationPaused = false; TogglePauseUI("Pause/Stop Animation", 1); } }