mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 13:05:53 +00:00
End of dialogue interaction
This commit is contained in:
parent
1fa77f0c03
commit
401d944ab4
3 changed files with 34 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue