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


public class Tiempo : MonoBehaviour {

    public Text tiempoTexto;
    private float tiempo;
	// Use this for initialization
	void Start () {
        tiempo = Time.time;
	}
	
	// Update is called once per frame
	void Update () {
        float t = Time.time - tiempo;
        string minutos = ((int)t / 60).ToString();
        string segundos = (t % 60).ToString("f2");
        tiempoTexto.text = minutos + ":" + segundos;

        if (minutos == "2")
        {
            
        }
	}
}
