Files
GodotTutorial/Scripts/Enemy.cs
2023-07-19 09:40:16 -07:00

14 lines
195 B
C#

using Godot;
public partial class Enemy : Node
{
public void OnHit(Variant body)
{
if (body.Obj is Projectile)
{
GD.Print("Hit");
QueueFree();
}
}
}