This commit is contained in:
Janis M
2022-02-22 10:46:31 +01:00
parent 5dfbaf3f30
commit 94654c714a
4 changed files with 50 additions and 26 deletions

View File

@@ -12,10 +12,11 @@ public class TimeUI : MonoBehaviour
private void Start()
{
timeManager = GameObject.Find("GameManager").GetComponent<TimeManager>();
TimeManager.OnTimeInterval += OnInterval;
}
private void Update()
void OnInterval()
{
DateTime dateTime = timeManager.GetDateTime();
if (dateTimeText != null)