This commit is contained in:
Janis Meister
2023-03-06 15:52:26 +01:00
parent 95b70a77db
commit d26c1fe607
6 changed files with 96 additions and 43 deletions

View File

@@ -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;