mirror of
				https://github.com/DerTyp7/harvestdale-unity.git
				synced 2025-10-31 05:27:07 +01:00 
			
		
		
		
	d
This commit is contained in:
		| @@ -1,6 +1,14 @@ | ||||
| using UnityEngine; | ||||
| using System; | ||||
|  | ||||
| public enum Season | ||||
| { | ||||
|   SPRING = 1, | ||||
|   SUMMER = 2, | ||||
|   AUTUMN = 3, | ||||
|   WINTER = 4 | ||||
| } | ||||
|  | ||||
| public class TimeManager : MonoBehaviour | ||||
| { | ||||
|   public static Action OnMinuteChanged; | ||||
| @@ -16,6 +24,8 @@ public class TimeManager : MonoBehaviour | ||||
|   public static int Month { get; private set; } | ||||
|   public static int Year { get; private set; } | ||||
|  | ||||
|   public static Season CurrentSeason => (Season)Month; | ||||
|  | ||||
|   [SerializeField] | ||||
|   [Range(.05f, 10f)] | ||||
|   private float minuteToRealTime = .05f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Janis Meister
					Janis Meister