コード例 #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
ファイル: DialogueManager.cs プロジェクト: 12joan/pop-pixie
    public void Play(string sequence_name, IDialogueSequenceEventHandler event_handler)
    {
        DialogueBoxInProgress = false;
        DialogueBox.Show();
        StateManager.SetState(State.Dialogue);
        MusicController.Current.SetVolume(0.25f);

        string json = Resources.Load <TextAsset>(sequence_name).text;

        Sequence         = DialogueSequence.ParseJSON(json);
        SequenceProgress = 0;

        EventHandler = event_handler;

        ReadNextPage();
    }