mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:45:33 +00:00
19 lines
No EOL
427 B
C#
19 lines
No EOL
427 B
C#
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;
|
|
}
|
|
} |