コード例 #1
0
    private IEnumerator TransitionToFinalScene(float delayBlackScr, float delaySceneLoading)
    {
        float timer = delayBlackScr;

        while (timer >= 0)
        {
            timer -= Time.deltaTime;
            yield return(null);
        }
        _black_screen.SetVisible(true);
        timer = delaySceneLoading;
        while (timer >= 0)
        {
            timer -= Time.deltaTime;
            yield return(null);
        }
        SceneManager.LoadScene(_final_scene_name);
    }