Shoot the guy
This commit is contained in:
10
Scenes/TestEnemy.cs
Normal file
10
Scenes/TestEnemy.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Godot;
|
||||
|
||||
public partial class TestEnemy : Node3D
|
||||
{
|
||||
public void OnHit(Node node)
|
||||
{
|
||||
GD.Print("Hit detected");
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user