﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class Timer : MonoBehaviour {

	Text timer;
	float time = 0.0f;

	// Use this for initialization
	void Start () {
		timer = gameObject.GetComponent<Text> ();
	}
	
	// Update is called once per frame
	void Update () {

		time += Time.deltaTime;

		timer.text = time.ToString("F1");
	
	}
}
