diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
| commit | c6bbb834f7758027c0df338f1520f34fad3befea (patch) | |
| tree | 1818cd23c24be16fbe19b16dd0a510874d440d83 /scripts/Utils/SignalBus.cs | |
| parent | f1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (diff) | |
Organização
Diffstat (limited to 'scripts/Utils/SignalBus.cs')
| -rw-r--r-- | scripts/Utils/SignalBus.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/Utils/SignalBus.cs b/scripts/Utils/SignalBus.cs index edeb09b..a2aa6ca 100644 --- a/scripts/Utils/SignalBus.cs +++ b/scripts/Utils/SignalBus.cs @@ -1,5 +1,6 @@ using Godot; -using System; + +namespace TheLegendOfGustav.Utils; /// <summary> /// Objeto global com sinais, fortes sinais. @@ -7,16 +8,10 @@ using System; public partial class SignalBus : Node { /// <summary> - /// Pois é. - /// </summary> + /// Pois é. + /// </summary> public static SignalBus Instance { get; private set; } - public override void _Ready() - { - base._Ready(); - Instance = this; - } - [Signal] public delegate void InspectorMovedEventHandler(Vector2I pos); @@ -24,4 +19,10 @@ public partial class SignalBus : Node public delegate void EnterInspectionModeEventHandler(); [Signal] public delegate void ExitInspectionModeEventHandler(); + + public override void _Ready() + { + base._Ready(); + Instance = this; + } } |
