Mini-Games-Game/Assets/Scripts/Timer.cs

16 lines
278 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class Timer : MonoBehaviour
{
public TMP_Text timer;
// Update is called once per frame
void Update()
{
timer.text = Time.time.ToString("0.00");
}
}