From 63e4f75e9292e1276cc0b5d11ebad010f147aa68 Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 4 Nov 2025 12:54:13 -0300 Subject: Display de andar --- scripts/Map/Map.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scripts/Map/Map.cs') diff --git a/scripts/Map/Map.cs b/scripts/Map/Map.cs index 2913c1f..104d658 100644 --- a/scripts/Map/Map.cs +++ b/scripts/Map/Map.cs @@ -32,9 +32,6 @@ public partial class Map : Node2D /// public MapData MapData { get; private set; } - [Signal] - public delegate void DungeonFloorChangedEventHandler(int floor); - private SignalBus.PlayerDescentEventHandler joinSignal; public override void _Ready() { @@ -83,7 +80,7 @@ public partial class Map : Node2D PlaceTiles(); PlaceEntities(); - EmitSignal(SignalName.DungeonFloorChanged, currentFloor); + SignalBus.Instance.EmitSignal(SignalBus.SignalName.DungeonFloorChanged, currentFloor); } /// @@ -142,7 +139,7 @@ public partial class Map : Node2D PlaceEntities(); MapData.EntityPlaced += OnEntityPlaced; - EmitSignal(SignalName.DungeonFloorChanged, MapData.CurrentFloor); + SignalBus.Instance.EmitSignal(SignalBus.SignalName.DungeonFloorChanged, MapData.CurrentFloor); return true; } -- cgit v1.2.3