mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-25 16:34:17 +00:00
25 lines
444 B
C#
25 lines
444 B
C#
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
|
||
|
namespace BetterTee.Player
|
||
|
{
|
||
|
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|