Boss healthbar

This commit is contained in:
2023-09-03 00:16:40 -07:00
parent 7764644b90
commit cf2642be2c
29 changed files with 301 additions and 167 deletions

12
Scripts/GodCircuit.cs Normal file
View File

@@ -0,0 +1,12 @@
using Godot;
public partial class GodCircuit : Node3D
{
private void OnHit(Node3D node)
{
GD.Print("Hit");
var hpComponent = GetNode<HealthPoints>("HP Component");
hpComponent.TakeDamage(800000);
hpComponent.UpdateHealthbar();
}
}