feature/showcase_bugfixing_kathi_partII #16

Merged
Jonathan merged 33 commits from feature/showcase_bugfixing_kathi_partII into develop 2025-10-24 18:31:56 +02:00
Showing only changes of commit 283caf282b - Show all commits
@@ -76,6 +76,17 @@ public partial class InteractionArea2D : Node2D
return; return;
if (@event.IsAction("interact") && @event.IsPressed()) if (@event.IsAction("interact") && @event.IsPressed())
{
TryInteract();
}
if (@event.IsActionPressed("click") && @event.IsPressed())
{
TryInteract();
}
}
private void TryInteract()
{ {
if (_area.HasOverlappingBodies()) if (_area.HasOverlappingBodies())
{ {
@@ -88,7 +99,6 @@ public partial class InteractionArea2D : Node2D
EmitSignal(SignalName.Interacted); EmitSignal(SignalName.Interacted);
} }
} }
}
public void SetSpriteActiveState(bool success, int id) // TODO: remove public void SetSpriteActiveState(bool success, int id) // TODO: remove
{ {