summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:45:07 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:45:07 -0300
commit240156765d88db25dd092fc320005cdb5f28d7a7 (patch)
tree2fadb2e7ef9409744f1d086f8f81771a46de2957 /scripts/Game.cs
parente9701f8ca459fa0015d78cacdc61aee904675598 (diff)
Refactor no sistema de ações
Diffstat (limited to 'scripts/Game.cs')
-rw-r--r--scripts/Game.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Game.cs b/scripts/Game.cs
index 21531fc..067f4a4 100644
--- a/scripts/Game.cs
+++ b/scripts/Game.cs
@@ -19,10 +19,10 @@ public partial class Game : Node {
public override void _PhysicsProcess(double delta) {
base._PhysicsProcess(delta);
- Action action = inputHandler.GetAction();
+ Action action = inputHandler.GetAction(player);
if (action != null) {
- action.Perform(this, player);
+ action.Perform();
HandleEnemyTurns();
}
}