Update TimeManager.cs

This commit is contained in:
j.mei7
2022-02-18 21:38:43 +01:00
parent 403c5bf11b
commit a01c75c28e

View File

@@ -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<GameObject/Script> where those plants can register themselves and every "TimeUp()" they get checked by the TimeManager
}