IEnumerator levelClear() { VirusBoss.SetActive(false); yield return(StartCoroutine(fOut.UndoFade())); MemFragUI.GetComponent <MemoryFragmentsUI>().saveMemoryFragments(); PlayerPrefs.SetInt("level3clear", 1); //raises a flag that tells us the level 2 is done PlayerPrefs.SetInt("PostStory3Told", 0); SceneManager.LoadScene(3); }
IEnumerator FadeOutScene() { yield return(StartCoroutine(fOut.UndoFade())); SceneManager.LoadScene(0); }
IEnumerator triggerWin() { yield return(StartCoroutine(fOut.UndoFade())); SceneManager.LoadScene(8); }