コード例 #1
0
    void PlayDialogue(string act)
    {
        if (!visible)
        {
            isPlaying = file.load(act);

            if (isPlaying.decide == "yes")
            {
                this.GetComponent <DecideEngine>().Decide(act);
            }

            if (isPlaying.voice != "")
            {
                AudioClip voice = Resources.Load <AudioClip>("Voices/" + isPlaying.voice);
                Voices.PlayOneShot(voice);
            }

            visible = true;
            ID      = act;
            last_ID = true;
        }
    }