mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 18:15:53 +00:00
Death animations and spawner
This commit is contained in:
parent
4fd31d7988
commit
16b7d936c9
13 changed files with 286 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue