using UnityEngine;
using System.Collections;
using UnityEngine.UI;

[RequireComponent (typeof(Button))]
public class ButtonMoreInfo : MonoBehaviour
{
	public string title;
	public string message;
	public string buttonText;

	// Use this for initialization
	void Start ()
	{
		this.GetComponent<Button> ().onClick.AddListener (delegate() {
			MenuHelper.ShowDialog (
				this.title,
				this.message,
				this.buttonText
			);
		});
	}
}
