mirror of
				https://github.com/DerTyp7/example-top-down-unity.git
				synced 2025-10-30 21:07:09 +01:00 
			
		
		
		
	Update TimeManager.cs
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 j.mei7
					j.mei7