summaryrefslogtreecommitdiff
path: root/scripts/input/MainGameInputHandler.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-02 12:50:09 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-02 12:50:09 -0300
commit6842ccfd372601db6b5d3f678ab5ebf03ad2b206 (patch)
tree572c89e5d266087f18c763bec3085dca3f29bdb6 /scripts/input/MainGameInputHandler.cs
parent4be033a60846cbdd290da27be44f270eba5a964d (diff)
Adicionado entidade Inspetor.
Diffstat (limited to 'scripts/input/MainGameInputHandler.cs')
-rw-r--r--scripts/input/MainGameInputHandler.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/input/MainGameInputHandler.cs b/scripts/input/MainGameInputHandler.cs
index 1c5ac6e..c7bf26a 100644
--- a/scripts/input/MainGameInputHandler.cs
+++ b/scripts/input/MainGameInputHandler.cs
@@ -24,6 +24,10 @@ public partial class MainGameInputHandler : BaseInputHandler {
action = new BumpAction(player, direction.Value);
}
}
+
+ if (Input.IsActionJustPressed("inspect")) {
+ GetParent<InputHandler>().SetInputHandler(InputHandlers.Inspect);
+ }
if (Input.IsActionJustPressed("skip-turn")) {
action = new WaitAction(player);