summaryrefslogtreecommitdiff
path: root/scripts/InputHandling/GameOverInputHandler.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-15 20:00:47 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-15 20:00:47 -0300
commit862b399fa37e6ca692d38177a22ee34860d2251e (patch)
tree3c0c80efbe0096c8e8d606ee464b54b55eaa209c /scripts/InputHandling/GameOverInputHandler.cs
parentbefb39054656e3242e9408f2afe8c902df471ffa (diff)
Menu principal
Diffstat (limited to 'scripts/InputHandling/GameOverInputHandler.cs')
-rw-r--r--scripts/InputHandling/GameOverInputHandler.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/InputHandling/GameOverInputHandler.cs b/scripts/InputHandling/GameOverInputHandler.cs
index e11e98a..bfd6d79 100644
--- a/scripts/InputHandling/GameOverInputHandler.cs
+++ b/scripts/InputHandling/GameOverInputHandler.cs
@@ -1,3 +1,4 @@
+using Godot;
using TheLegendOfGustav.Entities.Actions;
using TheLegendOfGustav.Entities.Actors;
@@ -11,6 +12,11 @@ public partial class GameOverInputHandler : BaseInputHandler
// Por enquanto não tem nada.
public override Action GetAction(Player player)
{
- return null;
+ Action action = null;
+ if (Input.IsActionJustPressed("quit"))
+ {
+ action = new EscapeAction(player);
+ }
+ return action;
}
} \ No newline at end of file