Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / Dialog / DialogTester.cs
@Rackday Rackday on 21 Aug 660 bytes Project Added
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();
        }
    }
}