🐛Make the FightWorld reset when sleeping in the bed

This commit is contained in:
jonathan
2025-11-25 18:43:48 +01:00
parent 3c370e30a0
commit 3f4dfccbc6
4 changed files with 26 additions and 4 deletions
@@ -0,0 +1,16 @@
using Godot;
using System;
using Babushka.scripts.CSharp.Common.Fight;
public partial class NightStarter : Node
{
[Export] private int _sceneIndexToLoad;
[Signal] public delegate void LoadSceneEventHandler(int index);
public void StartNight()
{
FightWorld.Instance.ResetFightWorld();
EmitSignalLoadScene(_sceneIndexToLoad);
}
}