Sachn
This commit is contained in:
@ -40,6 +40,19 @@ public class TimeManager : MonoBehaviourSingleton<TimeManager>
|
||||
/// </summary>
|
||||
public DateTime Deadline => _deadline;
|
||||
|
||||
public DateTime PredictedEndDate
|
||||
{
|
||||
get
|
||||
{
|
||||
double realSeconds = GameManager.Instance.ExpectedRemainingGameDuration;
|
||||
double gameDays = realSeconds / _secondsPerDay;
|
||||
|
||||
return CurrentDate.AddDays(gameDays);
|
||||
}
|
||||
}
|
||||
|
||||
public bool PredictedMissesDeadline => PredictedEndDate > Deadline;
|
||||
|
||||
/// <summary>
|
||||
/// Wie viele Sekunden ein Tag im Spiel hat
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user