Update stuff

This commit is contained in:
2023-09-10 12:18:02 -07:00
parent f67963b129
commit f0f02bbd17
117 changed files with 11343 additions and 13133 deletions

View File

@@ -5,14 +5,15 @@ public partial class GodCircuit : Node3D
[Export]
private AnimationPlayer _animationPlayer;
[Signal]
public delegate void OnEnemyBossHitEventHandler(long damage);
private void OnHit(Node3D node)
{
GD.Print("Hit");
_animationPlayer.Play("OnHit");
var hpComponent = GetNode<HealthPoints>("HP Component");
hpComponent.TakeDamage(800000);
hpComponent.UpdateHealthbar();
if (hpComponent.CurrentHP <= 0)
QueueFree();
EmitSignal(SignalName.OnEnemyBossHit, hpComponent.CurrentHP);
}
}