using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class Temporizador : MonoBehaviour {

    public float timeLeft = 0.10f;
    public Text tiempo;



	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
            timeLeft -= Time.deltaTime;

        tiempo.text = "Time:" + " " + (int)timeLeft;
            if (timeLeft < 0)
            {
			
            SceneManager.LoadScene("gameOver");
            }
    }
}
