Game state manager and restored inventory

This commit is contained in:
Marco 2025-06-25 15:36:50 +02:00
commit a0ec2f3d74
27 changed files with 1283 additions and 1175 deletions

View file

@ -0,0 +1,19 @@
using Godot;
namespace Cirno.Scripts.Utils;
public partial class GlobalInputManager : Node
{
public static GlobalInputManager Instance;
[Export] public StringName PauseActionName { get; private set; } = "pause";
public static bool IsPauseJustPressed()
{
return Input.IsActionJustPressed(Instance.PauseActionName);
}
public override void _Ready()
{
Instance = this;
}
}