- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class DialogTester : MonoBehaviour
- {
- public DialogController controller;
- // Start is called before the first frame update
- void Start()
- {
- DialogController.dialogSkipped += DialogController_dialogSkipped;
- }
- private void DialogController_dialogSkipped(DialogueMessage text, DialogController controller)
- {
- Debug.Log(text);
- this.controller = controller;
- }
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.P))
- {
- controller.Talk();
- }
- }
- }