End of dialogue interaction

This commit is contained in:
Marco 2025-02-06 13:28:27 +01:00
commit 401d944ab4
3 changed files with 34 additions and 2 deletions

View file

@ -21,7 +21,11 @@ public partial class AreaTrigger : Area2D
if (OneTime && _activations > 0) return false;
if (Target is not IActivable target) return false;
if (Target is not IActivable target)
{
GD.PrintErr($"Target {Target.Name} is not activable");
return false;
}
target.Activate();
_activations++;