war and murder

This commit is contained in:
2023-09-02 11:25:49 -07:00
parent 3b8e6b34c9
commit 7f7595b06d
8 changed files with 130 additions and 18 deletions

View File

@@ -2,6 +2,13 @@ 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");