示例#1
0
    private void ShowLine(int index)
    {
        if (index > _lastIndex)
        {
            _dialogueView.Clear();
            print("no more dialogue :(");
            return;
        }

        var line = _lines.SingleOrDefault(l => l.index == index);

        if (line == null)
        {
            // no dialogue for this index
            return;
        }

        string message = string.Format("{0}: {1}", line.speaker, line.text);

        _dialogueView.ShowText(message);
    }
示例#2
0
 public void InteractFalseKettle()
 {
     _dialogueView.ShowText(falseKettleMessage);
 }