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

namespace Unphook.Curds {
	/// <summary>scene component for the main menu.</summary>
	public class Menu:MonoBehaviour {
		Transform tr;
		Popup aboutPopup;

		/// <summary>unity awake event.</summary>
		void Awake() {
			Game.Verify();
			tr = transform;
			aboutPopup = tr.Find("about").GetComponent<Popup>();
			SetNavbar();
		}

		/// <summary>creates navbar items.</summary>
		void SetNavbar() {
			UI.Title(Colour.Rgb(130,107,140),Color.white,"curds");
			UI.Button("about",() => aboutPopup.Show());
		}

		/// <summary>unity start event.</summary>
		void Start() {
			//
		}

		/// <summary>unity update event.</summary>
		void Update() {
			//
		}
	}
}