Fix project layout

This commit is contained in:
2023-09-02 13:28:16 -07:00
parent 7c077179f9
commit f9c9bf0990
4 changed files with 2 additions and 11 deletions

17
Scripts/TestEnemy.cs Normal file
View File

@@ -0,0 +1,17 @@
using Godot;
public partial class TestEnemy : Node3D
{
public override void _Process(double delta)
{
var player = GetTree().GetFirstNodeInGroup("Player") as TestCharacter;
if (player != null)
LookAt(player.Position);
}
public void OnHit(Node node)
{
GD.Print("Hit detected");
QueueFree();
}
}