From a01c75c28ef0da5cdee8c111525300957ecdc081 Mon Sep 17 00:00:00 2001 From: "j.mei7" Date: Fri, 18 Feb 2022 21:38:43 +0100 Subject: [PATCH] Update TimeManager.cs --- Assets/Scripts/TimeManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/TimeManager.cs b/Assets/Scripts/TimeManager.cs index ec48c05..a30ecac 100644 --- a/Assets/Scripts/TimeManager.cs +++ b/Assets/Scripts/TimeManager.cs @@ -11,6 +11,7 @@ public class TimeManager : MonoBehaviour DateTime dateTime = new DateTime(1, 1, 1, 0, 0, 0); + public DateTime GetDateTime() => dateTime; public string GetTime() => dateTime.ToString("hh:mm tt"); public string GetDate() => dateTime.ToString("dd/mm/yyyy"); @@ -23,4 +24,6 @@ public class TimeManager : MonoBehaviour { dateTime = dateTime.AddMinutes(minutesPerInterval); } + + // For Plant growth maybe add a List where those plants can register themselves and every "TimeUp()" they get checked by the TimeManager }