IEnumerator ExampleCoroutine() { yield return(new WaitForSeconds(0.5f)); //in tutorial if (FinalCameraController.isTutorial) { flash = true; myFlash.alpha = 1; yield return(new WaitForSeconds(0.1f)); } else if (!usedPostures.ContainsKey(AdsController.currentPoseIdx.ToString()))//if the posture is never used { flash = true; myFlash.alpha = 1; yield return(new WaitForSeconds(0.1f)); } BeforeJumpToPage(); FinalCameraController.ChangeToSavingPage(); }