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

public class Score : MonoBehaviour {
	public Text timerText;
	private float secondsCount;
	private int minuteCount;



	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		UpdateTimerUI ();
	}
	void UpdateTimerUI(){
	
		secondsCount += Time.deltaTime;
		timerText.text = "Timer: " + minuteCount + "m " + secondsCount + "s";
		if (secondsCount >= 60) {
			minuteCount++;
			secondsCount = 0;
		
		}
	
	}


}
