Add PhantomCamera components and UI elements for improved scene management; refactor existing components for better integration

This commit is contained in:
2025-08-26 19:48:48 +02:00
parent cea3956fbb
commit 4c15f50f6e
65 changed files with 2654 additions and 61 deletions

View File

@@ -2,14 +2,13 @@ using Godot;
namespace Mr.BrickAdventures.scripts.components;
public partial class SpaceshipExitComponent : Node
public partial class SpaceshipExitComponent : Area2D
{
[Export] public Area2D Area { get; set; }
[Signal] public delegate void SpaceshipExitEventHandler();
public override void _Ready()
{
Area.BodyEntered += OnBodyEntered;
BodyEntered += OnBodyEntered;
}
private void OnBodyEntered(Node2D body)