using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class LoadData : MonoBehaviour
{
		public Text toChange; 
		public Text gameOverText;
		// Use this for initialization
		void Start ()
		{
				toChange.text = GameObject.FindGameObjectWithTag ("Caronte").GetComponent<TheKeeper> ().displayText;
				if (toChange.text.StartsWith ("SCORE")) {
						gameOverText.text = "YOU WIN";
				}
		}
	
		// Update is called once per frame
		void Update ()
		{
	
		}

		public void onRetryClicked ()
		{
				Application.LoadLevel (GameObject.FindGameObjectWithTag ("Caronte").GetComponent<TheKeeper> ().actualLevel);
		}
}
