This commit is contained in:
Janis
2023-02-15 20:16:18 +01:00
parent d4b8758291
commit 3b50e5062f
87 changed files with 16787 additions and 3762 deletions

17
Assets/Scripts/Clock.cs Normal file
View File

@@ -0,0 +1,17 @@
using UnityEngine;
using TMPro;
public class Clock : MonoBehaviour
{
private TextMeshProUGUI text;
private void Start()
{
text = GetComponent<TextMeshProUGUI>();
TimeManager.OnMinuteChanged += GetTime;
}
private void GetTime()
{
text.SetText($"{TimeManager.Day:00}D | {TimeManager.Hour:00}:{TimeManager.Minute:00}");
}
}