示例#1
0
    public void Display(string question, string pveAns, string nveAns, IPromptButtonEventHandler event_handler)
    {
        StateManager.SetState(State.DialoguePrompt);
        MusicController.Current.SetVolume(0.25f);

        EventHandler = event_handler;
        DialogueBox.Show();
        DialogueBox.Write(question, this);
        DialogueBox.SetFace(PromptFace);

        PromptButtons.Write(pveAns, nveAns, this);
        PromptButtons.Hide();
    }
示例#2
0
    void ReadPage(DialoguePage page)
    {
        DialogueBoxInProgress = true;
        DialogueBox.Write(page.Text, this);
        DialogueBox.SetFace(page.Face());

        if (page.HasVoiceLine())
        {
            Player.clip = page.VoiceLine();
            Player.Play();
        }
        else
        {
            Player.Stop();
        }
    }