Пример #1
0
    IEnumerator CardCoroutine()
    {
        GetComponent <WhiteScreenManager>().Flash(Color.white, 0.06f, 0.2f);
        yield return(new WaitForSeconds(0.06f));

        DanmakuManager.ClearDanmaku();
        GetComponent <SaigyoujiYuyuko>().petals2.Stop();
        GetComponent <SpriteRenderer>().enabled = false;
        GetComponent <CardEffectManager>().EndCard();
        GetComponent <SaigyoujiYuyuko>().Oogi(false);
        GetComponent <SaigyoujiYuyuko>().Ring(false);
        GetComponent <BackgroundManager>().SetBackground(5);
        GameObject.Find("Player").GetComponentInChildren <AudioManager>().StopBGM();
        GameObject.Find("Player").GetComponentInChildren <AudioManager>().PlayEnepSE();
        yield return(new WaitForSeconds(4f));

        GetComponent <CardEffectManager>().WordsAppear();
        yield return(new WaitForSeconds(6f));

        GetComponent <WhiteScreenManager>().Flash(Color.white, 0.5f, 0.5f);
        GetComponent <SaigyoujiYuyuko>().MoveTo(new Vector3(0f, 0f, 100f));
        yield return(new WaitForSeconds(0.5f));

        GetComponent <SaigyoujiYuyuko>().Ring(true);
        GetComponent <CardEffectManager>().StartCard("「反魂蝶 -参分咲-」", true);
        GetComponent <BackgroundManager>().SetBackground(1);
        yield return(new WaitForSeconds(1.5f));

        GameObject.Find("Player").GetComponentInChildren <AudioManager>().PlayBGM2();
        yield return(new WaitForSeconds(3f));

        for (int cnt = 3; cnt < 11; cnt++)
        {
            CreateLasers(cnt);
            StartCoroutine(CreateSpheres1());
            yield return(new WaitForSeconds(2.25f));

            StartCoroutine(CreateSpheres2());
            yield return(new WaitForSeconds(2.25f));

            CreateSphere3();
            yield return(new WaitForSeconds(2.5f));
        }
        CreateLasers(11);
        StartCoroutine(CreateSpheres1());
        yield return(new WaitForSeconds(1f));

        Time.timeScale = 0.5f;
        yield return(new WaitForSeconds(2f));

        GetComponent <WhiteScreenManager>().Flash(Color.white, 1f, 0.5f);
        yield return(new WaitForSeconds(1f));

        Time.timeScale = 1f;
        GetComponent <CardEffectManager>().EndCard();
        GetComponent <SaigyoujiYuyuko>().Ring(false);
        GetComponent <SaigyoujiYuyuko>().Tamashi(false);
        GetComponent <BackgroundManager>().SetBackground(5);
        DanmakuManager.ClearDanmaku();

        yield return(new WaitForSeconds(4f));

        GetComponent <CardEffectManager2>().AllClearAppear();

        yield return(new WaitForSeconds(5f));

        GameObject.Find("Player").GetComponentInChildren <AudioManager>().FadeOut(4f);
        yield return(new WaitForSeconds(3f));

        GetComponent <WhiteScreenManager>().Flash(Color.white, 1f, 1e20f);
        yield return(new WaitForSeconds(1.5f));

        GameObject.Find("Player").GetComponentInChildren <GameController>().ReturnToTitle();
    }