Dialogue System

This commit is contained in:
Marco 2025-02-06 11:36:21 +01:00
commit 1fa77f0c03
690 changed files with 46698 additions and 14 deletions

View file

@ -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++;