13 lines
265 B
C#
13 lines
265 B
C#
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();
|
|
}
|
|
}
|