コード例 #1
0
        private IEnumerator WaitCut()
        {
            yield return(new WaitForSeconds(waitTime));

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

            SceneChanger.NextScene();
        }
コード例 #2
0
        private IEnumerator BulletChangeScene()
        {
            yield return(new WaitForSeconds(cutTime));

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

            SceneChanger.NextScene();
        }
コード例 #3
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();
        }