mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-04 15:55:55 +00:00
Death animations and spawner
This commit is contained in:
parent
4fd31d7988
commit
16b7d936c9
13 changed files with 286 additions and 11 deletions
|
|
@ -18,6 +18,7 @@ public partial class DamageReceiverActorModule : ActorModule
|
|||
{
|
||||
_actor = actor;
|
||||
|
||||
HealthProvider.FillResource();
|
||||
HealthProvider.ResourceDepleted += OnDeath;
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +62,6 @@ public partial class DamageReceiverActorModule : ActorModule
|
|||
protected void OnDeath()
|
||||
{
|
||||
_actor.IsDestroyed = true;
|
||||
GD.Print("Actor dead");
|
||||
_actor.TriggerDeath();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue