war and murder
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user