private IEnumerator WaitCut() { yield return(new WaitForSeconds(waitTime)); FadeMusic.FadeOutMusic(); SceneChanger.FadeToScene(); yield return(new WaitForSeconds(1)); SceneChanger.NextScene(); }
private IEnumerator BulletChangeScene() { yield return(new WaitForSeconds(cutTime)); FadeMusic.FadeOutMusic(); SceneChanger.FadeToScene(); yield return(new WaitForSeconds(2)); SceneChanger.NextScene(); }
private IEnumerator PortalAbsorb() { yield return(new WaitForSeconds(0.5f)); AudioSource.PlayClipAtPoint(portalSound, portalCamera.transform.position); Destroy(ryder); Time.timeScale = 1f; yield return(new WaitForSeconds(cutTime)); FadeMusic.FadeOutMusic(); SceneChanger.FadeToScene(); yield return(new WaitForSeconds(1)); SceneChanger.NextScene(); }