using UnityEngine;
using System.Collections;

public class LevelLoader : MonoBehaviour
{
		private bool active = false;
		// Use this for initialization
		public void LevelLoad (string a)
		{
				Application.LoadLevel (a);
		}
		void Start ()
		{
		
				Screen.showCursor = true;
		
		
		
		
		}
		void Update ()
		{
				if (Input.GetButtonDown ("Submit") && active)
						Application.LoadLevel ("LevelSelect");
		
		
		
		
		}
		public void SetActive ()
		{
				active = true;
		}
		
		
		public void Close ()
		{
				Application.Quit ();
		}
}
