Beispiel #1
0
    IEnumerator ch()
    {
        Vector3 temp = Player.current.GetComponentInParent <Leg>().transform.position;

        Fade.FadeIn(black);
        yield return(new WaitForSeconds(0.5f));

        SceneManager.UnloadSceneAsync(toUnload);
        SubtitleSystem.ShowSpecialSubtitle(Sub, delayTime);
        yield return(new WaitForSeconds(delayTime + 1f));

        SceneManager.LoadScene(toLoad, LoadSceneMode.Additive);
        Player.current.GetComponentInParent <Leg>().transform.position = temp;
        Fade.Disappear(black);
        yield return(new WaitForSeconds(0.3f));

        isChanging = false;
        SceneManager.UnloadSceneAsync("过渡场景");
    }
Beispiel #2
0
    public IEnumerator Words4()
    {
        yield return(new WaitForSeconds(1));

        SubtitleSystem.ShowSpecialSubtitle("直到......", 4f);
    }
Beispiel #3
0
    public IEnumerator Words2()
    {
        yield return(0);

        SubtitleSystem.ShowSpecialSubtitle("没有担忧、没有痛苦、没有离别", 4.5f);
    }
Beispiel #4
0
    public IEnumerator Words3()
    {
        yield return(new WaitForSeconds(1));

        SubtitleSystem.ShowSpecialSubtitle("那是我曾经拥有的生活", 3f);
    }
Beispiel #5
0
    public IEnumerator Words1()
    {
        yield return(new WaitForSeconds(2.8f));

        SubtitleSystem.ShowSpecialSubtitle("“和平”是什么?", 4f);
    }