mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Dialogue System
This commit is contained in:
parent
77765a581e
commit
1fa77f0c03
690 changed files with 46698 additions and 14 deletions
|
|
@ -4,7 +4,7 @@ namespace Cirno.Scripts.Interactables;
|
|||
|
||||
public partial class AreaTrigger : Area2D
|
||||
{
|
||||
[Export] public Activable Target { get; set; }
|
||||
[Export] public Node2D Target { get; set; }
|
||||
|
||||
[Export] public bool OneTime { get; set; }
|
||||
[Export] public bool DoNotActivateOnFirst { get; set; }
|
||||
|
|
@ -20,8 +20,9 @@ public partial class AreaTrigger : Area2D
|
|||
}
|
||||
|
||||
if (OneTime && _activations > 0) return false;
|
||||
|
||||
Target?.Activate();
|
||||
|
||||
if (Target is not IActivable target) return false;
|
||||
target.Activate();
|
||||
|
||||
_activations++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue