OW tweaks

This commit is contained in:
Pal
2025-10-07 01:18:17 -07:00
parent 9bfb410f99
commit 8e030aabcd
10 changed files with 168 additions and 55 deletions

View File

@@ -23,15 +23,15 @@ public partial class Altar : Node3D, IDungeonFloor
public override void _Ready()
{
Show();
Exit.AreaEntered += Exit_AreaEntered;
FloorIsLoaded = true;
Show();
Exit.AreaEntered += Exit_AreaEntered;
FloorIsLoaded = true;
}
private void Exit_AreaEntered(Area3D area)
{
if (area.GetOwner() is IPlayer)
ExitReached();
if (area.GetOwner() is IPlayer)
ExitReached();
}
public void ExitReached() => Game.FloorExitReached();