summaryrefslogtreecommitdiff
path: root/scripts/InputHandling/InputHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/InputHandling/InputHandler.cs')
-rw-r--r--scripts/InputHandling/InputHandler.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/InputHandling/InputHandler.cs b/scripts/InputHandling/InputHandler.cs
index ce265a1..3c39587 100644
--- a/scripts/InputHandling/InputHandler.cs
+++ b/scripts/InputHandling/InputHandler.cs
@@ -57,6 +57,15 @@ public partial class InputHandler : Node
return SelectedInputHandler.GetAction(player);
}
+ public override void _Notification(int what)
+ {
+ if (what == NotificationPredelete)
+ {
+ SignalBus.Instance.CommandInputHandler -= SetInputHandler;
+ }
+ base._Notification(what);
+ }
+
/// <summary>
/// Define o esquema de controle atual do jogo
/// para o estado informado.