Esempio n. 1
0
    IEnumerator ScenarioMain()
    {
        yield return(WaitSelect(
                         "我が友、李徴子ではないか?",
                         "君の名前は三葉",
                         "Armour Zone"
                         ));

        switch (selectCtrl.Result)
        {
        case 0:
            NameController.textNum1 = 12;
            nameCtrl.SetNextLine();
            TextController2.textNum1 = 12;
            textCtrl2.SetNextLine();
            break;

        case 1:
            NameController.textNum1 = 16;
            nameCtrl.SetNextLine();
            TextController2.textNum1 = 16;
            textCtrl2.SetNextLine();
            break;

        case 2:
            NameController.textNum1 = 20;
            nameCtrl.SetNextLine();
            TextController2.textNum1 = 20;
            textCtrl2.SetNextLine();
            break;
        }

        yield return(ImageFade(backGround, Fade.Out));

        yield return(ImageFade(backGround, Fade.In));
    }
Esempio n. 2
0
    void Update()
    {
        if (Time.time > 5.5f)
        {
            if (one)
            {
                StopCoroutine(FadeinPanel());
                StartCoroutine(FadeoutPanel());
                animator.SetBool("Close", false);
                audioSource.clip = bgm1;
                audioSource.Play();
                one = false;
            }
        }

        if (TextController2.textNum1 == 31)
        {
            if (setumei)
            {
                Debug.Log("せつめい");
                animator.SetBool("Close", true);
                mkm.SetBool("mkmClose", false);
                setumei = false;
            }
        }

        if (TextController2.textNum1 == 33)
        {
            if (tatakai)
            {
                Debug.Log("たたかい");
                gt.SetBool("gtClose", false);
                mkm.SetBool("mkmRight", false);
                tatakai = false;
            }
        }

        if (TextController2.textNum1 == 40)
        {
            if (heiki)
            {
                Debug.Log("へいき");
                gt.SetBool("gtClose", true);
                mkm.SetBool("mkmRight", true);
                heiki = false;
            }
        }

        if (TextController2.textNum1 == 43)
        {
            if (climax)
            {
                Debug.Log("クライマックス");
                Instantiate(FinalWeapon);
                climax = false;
            }
        }

        if (CloseButton.isStart)
        {
            audioSource.clip = bgm2;
            audioSource.Play();
            NameController.textNum1 = 44;
            nameCtrl.SetNextLine();
            TextController2.textNum1 = 44;
            textCtrl2.SetNextLine();
            CloseButton.isStart = false;
        }

        if (TextController2.textNum1 == 45)
        {
            if (push)
            {
                Debug.Log("押しちゃった");
                mkm.SetBool("mkmClose", true);
                push = false;
            }
        }

        if (TextController2.textNum1 == 48)
        {
            if (finalgt)
            {
                Debug.Log("最終兵器後藤先生");
                final.SetBool("gtClose", false);
                finalgt = false;
            }
        }

        if (TextController2.textNum1 == 53)
        {
            if (zikai)
            {
                Debug.Log("次回予告");
                audioSource.clip  = bgm3;
                audioSource.pitch = 1.2f;
                audioSource.Play();
                zikai = false;
            }
        }

        if (Input.GetKeyDown(KeyCode.A))
        {
            StopCoroutine(FadeinPanel());
            StartCoroutine(FadeoutPanel());
            animator.SetBool("Close", false);
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            StopCoroutine(FadeoutPanel());
            StartCoroutine(FadeinPanel());
            animator.SetBool("Close", true);
        }
    }