Death animations and spawner

This commit is contained in:
Marco 2025-02-23 19:19:12 +01:00
commit 16b7d936c9
13 changed files with 286 additions and 11 deletions

View file

@ -15,6 +15,9 @@ public partial class Actor : CharacterBody2D
private GameManager _gameManager;
private List<ActorModule> _modules = new();
[Signal]
public delegate void OnDeathEventHandler();
public bool IsDestroyed { get; set; }
@ -47,4 +50,9 @@ public partial class Actor : CharacterBody2D
}
}
public void TriggerDeath()
{
EmitSignal(SignalName.OnDeath);
}
}