IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); anima2.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox2.text = "あ!リンゴの芽がある!"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); anima.Dasu(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "そういえばお腹すいちゃったな"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "ねえ試しに色を移してリンゴと 赤を取ってみましょ?"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "赤は後で必要になりそうだしね"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "色を移してリンゴなんてできるの?"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "ふふっ私が教えてあげるって 言ったでしょ?"; audioSource.PlayOneShot(sound06); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); anima2.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox2.text = "おいしい~!"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); anima.Dasu(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "うん、おいしいね"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox.text = "そういえばなんで魔女は 色があるの?"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "ふふっ、それはね…"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "魔女だからよ"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "そんなことより先に行きましょ"; audioSource.PlayOneShot(sound06); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); Shiro.SetActive(false); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); //最初にレインが話す場合 anima.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox.text = "あった…"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女1 anima2.Dasu(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "伝説では聞いていたけれどまさか地下にあるとはね…"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "さあその杖を使ってみて"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合2 anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "あれ…"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "ありゃ、やっぱり魔力が足りないか、キミは魔法使いじゃないしね"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "私も力を貸すわ。さぁいくよ!"; audioSource.PlayOneShot(sound06); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); textbox2.text = " "; Shiro.SetActive(true); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); //魔女からレインに代わる場合2 anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "魔法使えたんだね"; audioSource.PlayOneShot(sound07); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "王様の息子だからって失礼ね魔女だって言ってるじゃない。"; audioSource.PlayOneShot(sound08); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合2 anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "ふふっ、冗談だよ。"; audioSource.PlayOneShot(sound09); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox.text = "本当にありがとう。あなたが いなかったらもうこの景色は見れなかったと思う"; audioSource.PlayOneShot(sound10); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "お褒めの言葉光栄ですわ。 レイン王子。"; audioSource.PlayOneShot(sound11); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合2 anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "さぁ城に戻ろうか"; audioSource.PlayOneShot(sound12); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); //最初に魔女が話す場合 anima2.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox2.text = "私の思った通り氷をどかせたわね"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合1 anima2.Kesu(); anima.Dasu(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "これで遺跡にむかえるね"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "ええ、さっそく向かいましょ!"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); //最初にレインが話す場合 anima.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox.text = "ここに虹の石が置かれてる 台座があるはずなんだけれど"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女1 anima2.Dasu(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "うーん…"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "爆発でどっかいちゃったかな~?"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合2 anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "そんな…どうすれば…"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "大丈夫よ、方法はあるはず 私も考えるわ"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); anima2.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox2.text = "お~い!ちょっと待って~!"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "ちょっとキミ、1人で色を全部戻せると思っているの?"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); anima.Dasu(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "…あなたは誰?"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "私は魔女だよ。キミに協力してって王様から言われたんだ。 色々教えてあげるよ。"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "そうだったんだ。確かに何も分からないまま出てきちゃったな…。"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox.text = "それじゃ、これからよろしく おねがいします。"; audioSource.PlayOneShot(sound06); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }
IEnumerator Start() { audioSource = gameObject.GetComponent <AudioSource>(); Hukidashi = GameObject.Find("Image"); Hukidashi.GetComponent <Anima>(); Anima anima = Hukidashi.GetComponent <Anima>(); Hukidashi2 = GameObject.Find("Image2"); Hukidashi2.GetComponent <Anima2>(); Anima2 anima2 = Hukidashi2.GetComponent <Anima2>(); textbox.text = " "; yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); //最初にレインが話す場合 anima.Dasu(); yield return(new WaitForSeconds(0.1f)); textbox.text = "うっここは寒いね…"; audioSource.PlayOneShot(sound01); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女1 anima2.Dasu(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "そうね、出来るだけ早くここを 抜けましょ"; audioSource.PlayOneShot(sound02); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "おっと…"; audioSource.PlayOneShot(sound03); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //魔女からレインに代わる場合2 anima2.Kesu(); anima.Kesu2(); textbox2.text = " "; yield return(new WaitForSeconds(0.1f)); textbox.text = "氷の柱が邪魔して 通れないね…"; audioSource.PlayOneShot(sound04); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); //レインから魔女 anima2.Kesu2(); anima.Kesu(); textbox.text = " "; yield return(new WaitForSeconds(0.1f)); textbox2.text = "でも遺跡に向かうにはここを 通るしかないのよね"; audioSource.PlayOneShot(sound05); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); audioSource.Stop(); textbox2.text = "どうにかしてこの柱をどかしましょ"; audioSource.PlayOneShot(sound06); yield return(new WaitUntil(() => Input.GetKeyDown(KeyCode.Space))); yield return(null); Scene(); }