mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-22 07:14:19 +00:00
21 lines
414 B
C#
21 lines
414 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class TimerToText : MonoBehaviour
|
|
{
|
|
protected Timer timer;
|
|
protected Text text;
|
|
|
|
protected void Start()
|
|
{
|
|
timer = GetComponent<Timer>();
|
|
text = GetComponent<Text>();
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
text.text = Mathf.CeilToInt(timer.time).ToString();
|
|
}
|
|
}
|