From c6bbb834f7758027c0df338f1520f34fad3befea Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 9 Sep 2025 19:09:34 -0300 Subject: Organização MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Utils/SignalBus.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'scripts/Utils/SignalBus.cs') 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; /// /// Objeto global com sinais, fortes sinais. @@ -7,16 +8,10 @@ using System; public partial class SignalBus : Node { /// - /// Pois é. - /// + /// Pois é. + /// 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; + } } -- cgit v1.2.3