Refactored switches and chests and mapping

This commit is contained in:
Marco 2025-01-30 17:24:40 +01:00
commit cc5376e94e
14 changed files with 158 additions and 91 deletions

View file

@ -1,4 +1,5 @@
using Godot;
using Cirno.Scripts.Interactables;
using Godot;
[Tool]
public partial class DoorButtonVisualizer : Node2D
@ -36,7 +37,7 @@ public partial class DoorButtonVisualizer : Node2D
// if (TargetPath == null || !Engine.IsEditorHint())
// return;
if (_parent is not Interactable p) return;
if (_parent is not Switch p) return;
if (p.Target == null) return;