Example #1
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            //show dia
            _view.Show();
        }
        if (Input.GetKeyDown(KeyCode.Q))
        {
            //display dia 1
            _view.Display(_dialogueOne);
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            //display dia 2
            _view.Display(_dialogueTwo);
        }
        if (Input.GetKeyDown(KeyCode.Z))
        {
            //hide dia
            _view.Hide();
        }
    }
Example #2
0
 private void ReloadDialogue_Button_Click(object sender, RoutedEventArgs e)
 {
     DialogueView.Display();
 }