using UnityEngine;
using System.Collections;

public class TitleScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}

	// OnGUI
	void OnGUI () {
		GUI.Box(new Rect((Screen.width / 2) - 300,(Screen.height / 2) - 100,600,200),"\nIn 'Dreamshift', you must make it to the doorway at the end of the level.\nUse the arrow keys to move, and the Shift button to jump.\nPress 'z' to flip switches or use the doorway.\n\nIf your energy runs out, you will fall asleep.\nYou can also force yourself to fall asleep by pressing 'x', but it will cause extra stress.\n\nWhile asleep, your energy builds back up again, and you will awaken when it refills completely.\nYou can also return to your body and press 'x' to wake up, which causes stress).\n\nPress Space to start!");
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetKeyDown ("space")) {
			Application.LoadLevel ("level1");
		}
		if (Input.GetKeyDown ("escape")) {
			Application.Quit ();
		}
	}
}
