﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class HumanOutputPanel : MonoBehaviour
{
	public Text text;

	private void OnEnable()
	{
		Action.OnPerformed += OutputHumanSpeech;
	}

	private void OnDisable()
	{
		Action.OnPerformed -= OutputHumanSpeech;
	}

	private void OutputHumanSpeech(Action action)
	{
		text.text = action.text;
	}
}
