summaryrefslogtreecommitdiff
path: root/scripts/InputHandling/GameOverInputHandler.cs
diff options
context:
space:
mode:
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