You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
19 lines
474 B
using Babushka.scripts.CSharp.Low_Code.Variables;
|
|
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.DayAndNight;
|
|
|
|
public partial class CalendarController : Node
|
|
{
|
|
[Export] private SaveableVariableNode _dayCounter;
|
|
|
|
public override void _Input(InputEvent @event)
|
|
{
|
|
if (@event.IsActionPressed("NextDayCheat"))
|
|
{
|
|
int days = _dayCounter.Payload.AsInt32();
|
|
days++;
|
|
_dayCounter.Payload = days;
|
|
}
|
|
}
|
|
} |