✨ Made bed interaction count up the days and verified that you can now play a full loop
This commit is contained in:
@@ -31,10 +31,14 @@ public partial class CalendarController : Node
|
||||
{
|
||||
if (@event.IsActionPressed("NextDayCheat"))
|
||||
{
|
||||
int days = _dayCounter.Payload.AsInt32();
|
||||
days++;
|
||||
_dayCounter.Payload = days;
|
||||
|
||||
GoToNextDay();
|
||||
}
|
||||
}
|
||||
|
||||
public void GoToNextDay()
|
||||
{
|
||||
int days = _dayCounter.Payload.AsInt32();
|
||||
days++;
|
||||
_dayCounter.Payload = days;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.DayAndNight;
|
||||
|
||||
public partial class DayAndNightHelper : Node
|
||||
{
|
||||
public void IncreaseDayCount()
|
||||
{
|
||||
CalendarController.Instance?.GoToNextDay();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://jg4jryfus3bw
|
||||
Reference in New Issue
Block a user