Delay start for animation

This commit is contained in:
Marco 2025-03-03 10:58:20 +01:00
commit a9a7b234fb
9 changed files with 108 additions and 23 deletions

View file

@ -3,6 +3,25 @@ using System;
public partial class InteractionController : Area2D
{
private bool _enabled = false;
public bool Enabled
{
get => _enabled;
set
{
if (_enabled == value) return;
_enabled = value;
if (_enabled)
{
EmitSignal(SignalName.InteractionStarted);
}
}
}
[Signal]
public delegate void InteractionStartedEventHandler();
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{