Ejemplo n.º 1
0
        private static IEnumerator SkipScene()
        {
            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(1));

            SceneChanger.NextScene();
        }
Ejemplo n.º 2
0
        private IEnumerator BulletChangeScene()
        {
            yield return(new WaitForSeconds(cutTime));

            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(2));

            SceneChanger.NextScene();
        }
        private IEnumerator WaitCut()
        {
            yield return(new WaitForSeconds(waitTime));

            FadeMusic.FadeOutMusic();
            SceneChanger.FadeToScene();
            yield return(new WaitForSeconds(1));

            SceneChanger.NextScene();
        }
Ejemplo n.º 4
0
        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();
        }