Fixed stupid bug
This commit is contained in:
parent
8c9ddbbeeb
commit
b504f111f5
|
@ -72,11 +72,12 @@ public class TimeManager : MonoBehaviourSingleton<TimeManager>
|
|||
|
||||
void UpdateTime()
|
||||
{
|
||||
double oldTotalTime = _totalTime;
|
||||
|
||||
_totalTime += Time.deltaTime / _secondsPerDay;
|
||||
|
||||
if (_totalTime >= 1.0)
|
||||
if (Math.Floor(oldTotalTime) < Math.Floor(_totalTime))
|
||||
{
|
||||
_totalTime -= 1.0;
|
||||
_daysUntilRelease--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue