small death animation and toolbox
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 35s
Create tag and build when new code gets to main / Test (push) Successful in 6m20s
Create tag and build when new code gets to main / Export (push) Successful in 7m20s

This commit is contained in:
2026-01-27 16:42:31 +01:00
parent f1f0febf29
commit 056a68b0ad
19 changed files with 413 additions and 48 deletions

View File

@@ -16,6 +16,8 @@ public partial class HeadSystem : Node3D
public delegate void HitTargetEventHandler();
[Signal]
public delegate void GotHitEventHandler();
[Signal]
public delegate void DeathAnimationFinishedEventHandler();
[Signal]
public delegate void StepFootEventHandler();
@@ -129,6 +131,15 @@ public partial class HeadSystem : Node3D
{
_animationTree.Set("parameters/OnHit/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
}
public void OnStartDeathAnimation()
{
_animationTree.Set("parameters/OnDie/request", (int) AnimationNodeOneShot.OneShotRequest.Fire);
}
public void OnDeathAnimationFinished()
{
EmitSignalDeathAnimationFinished();
}
public void OnHitTarget()
{