Clean up events, add weapon tag for weaker on swing

This commit is contained in:
2026-02-09 23:50:15 -08:00
parent aba325ff2b
commit 90d054a3c6
34 changed files with 301 additions and 125 deletions

View File

@@ -18,4 +18,9 @@ public partial class MapRevealerCube : Node3D
}
private void Area3D_AreaEntered(Area3D area) => MeshInstance3D.Hide();
public void OnExitTree()
{
Area3D.AreaEntered -= Area3D_AreaEntered;
}
}

View File

@@ -35,4 +35,9 @@ public partial class Minimap : Control
{
LayerNumberText.Text = $"{obj:D2}";
}
public void OnExitTree()
{
_map.CurrentFloorNumber.Sync -= CurrentFloorNumber_Sync;
}
}