diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-15 20:00:47 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-15 20:00:47 -0300 |
| commit | 862b399fa37e6ca692d38177a22ee34860d2251e (patch) | |
| tree | 3c0c80efbe0096c8e8d606ee464b54b55eaa209c /scripts/InputHandling/InputHandler.cs | |
| parent | befb39054656e3242e9408f2afe8c902df471ffa (diff) | |
Menu principal
Diffstat (limited to 'scripts/InputHandling/InputHandler.cs')
| -rw-r--r-- | scripts/InputHandling/InputHandler.cs | 9 |
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. |
