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

public class MenuNavigatorButton : MonoBehaviour
{
	public MenuSection target;
	public bool replaceSection = false;
	// Use this for initialization
	void Start ()
	{
		var btn = this.GetComponent<Button> ();
		btn.onClick.AddListener (delegate() {
			MenuHelper.NavigateTo (target, replaceSection);
		});
	}
}
