12 lines
361 B
C#
12 lines
361 B
C#
using Godot;
|
|
|
|
namespace GodotspaceShooter.Scripts;
|
|
|
|
public partial class InputManager : Node
|
|
{
|
|
private const string GAME_PAUSE = "Game_Pause";
|
|
|
|
public override void _UnhandledInput(InputEvent @event) {
|
|
if (Input.IsActionJustReleased(GAME_PAUSE)) GameManager.Instance.GamePaused = GameManager.Instance.GamePaused switch { true => false, false => true };
|
|
}
|
|
} |