mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-07 15:55:55 +00:00
Game state manager and restored inventory
This commit is contained in:
parent
f0f49f8fb4
commit
a0ec2f3d74
27 changed files with 1283 additions and 1175 deletions
19
Scripts/Utils/GlobalInputManager.cs
Normal file
19
Scripts/Utils/GlobalInputManager.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue