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

public class ShowTxtStartAge : MonoBehaviour {
	GUIStyle msgStyle = new GUIStyle();
	GameController gc;
	public Age ageToStart;
	public TextAsset textToShow;


	void Start () {
		msgStyle.normal.textColor = Color.white;
		msgStyle.fontSize = 30;
		msgStyle.alignment = TextAnchor.MiddleCenter;
		gc = GameController.instance;
		msgStyle.font = GameController.font;
	}
	
	// Update is called once per frame
	void Update () {
		if(Input.GetButtonDown("Interact")){
			gc.SendMessage ("StartAge", ageToStart);
		}
	}

	void OnGUI(){
		GUI.Label(new Rect(0,0,Screen.width,Screen.height), textToShow.text,msgStyle);

	}
}
